import React from 'react'; import { useTranslation } from '../../i18n'; import { OptionPropsType } from '../../constants/type'; import Icon from '../Icon'; import Button from '../Button'; import Typography from '../Typography'; import ColorSelector from '../ColorSelector'; import SliderWithTitle from '../SliderWithTitle'; import { Group, Item, Wrapper } from '../../global/toolStyled'; const FreehandOption: React.SFC = ({ type, color, opacity, width, setDataState = (): void => { // do nothing }, }: OptionPropsType) => { const { t } = useTranslation('sidebar'); return ( <> {t('style')} { setDataState({ type: 'pen' }); }} > { setDataState({ color: selected }); }} /> { setDataState({ opacity: val }); }} /> { setDataState({ width: val }); }} maximum={40} /> ); }; export default FreehandOption;