import React from 'react'; import { useTranslation } from 'react-i18next'; import Typography from '../Typography'; import SelectBox from '../SelectBox'; import SliderWithTitle from '../SliderWithTitle'; import ColorSelector from '../../containers/ColorSelector'; import { Wrapper } from '../../global/toolStyled'; import { shapeOptions, typeOptions } from './data'; const ShapeOption: React.SFC = ({ shape, color, opacity, width, setDataState = (): void => { // do nothing }, }: OptionPropsType) => { const { t } = useTranslation('sidebar'); return ( <> {t('style')} ): void => { setDataState({ shape: item.key }); }} /> {shape !== 'line' && shape !== 'arrow' && ( ): void => { setDataState({ type: item.key }); }} /> )} { setDataState({ color: selected }); }} throughPortal /> { setDataState({ opacity: val }); }} /> { setDataState({ width: val }); }} maximum={40} /> ); }; export default ShapeOption;