import React from 'react'; import { useTranslation } from 'react-i18next'; import Icon from '../Icon'; import Typography from '../Typography'; import SliderWithTitle from '../SliderWithTitle'; import ColorSelector from '../../containers/ColorSelector'; import { Group, Item, Wrapper } from '../../global/toolStyled'; import data from './data'; const HighlightOption: React.SFC = ({ type, color, opacity, setDataState = (): void => { // do nothing }, }: OptionPropsType) => { const { t } = useTranslation('sidebar'); return ( <> {t('style')} {data.lineType.map((ele) => ( { setDataState({ type: ele.key, color: ele.color }); }} > ))} { setDataState({ color: selected }); }} throughPortal /> { setDataState({ opacity: val }); }} /> ); }; export default HighlightOption;