import { SyntheticEvent } from 'react'; import themes from '../data/themes.json'; interface Props { className?: string; onChange: (theme: string) => void; value: string; } export const ThemeSelector = ({ className, onChange, value }: Props) => { const handleOnChange = (event: SyntheticEvent) => { onChange(event.currentTarget.value); }; return (
); };