import React from 'react'; import Icon from '../Icon'; import { ToggleButton } from './styled'; type Props = { displayMode: string; toggleDisplayMode: (state: string) => void; }; const FullScreenButton: React.FC = ({ displayMode, toggleDisplayMode, }: Props) => { return ( {displayMode === 'normal' ? ( { toggleDisplayMode('full'); }} /> ) : ( { toggleDisplayMode('normal'); }} /> )} ); }; export default FullScreenButton;