import React from 'react'; import Icon from '../Icon'; import Button from '../Button'; import { uploadFile } from '../../helpers/utility'; import { ContentWrapper } from './styled'; type Props = { t: (key: string) => string; onChange: (data: string) => void; }; const ImageSelector: React.FC = ({ t, onChange, }: Props): React.ReactElement => { const handleClick = (): void => { uploadFile('.png,.jpg,.jpeg,.svg').then(urlData => { onChange(urlData); }); }; return ( ); }; export default ImageSelector;