import { useRecoilState } from 'recoil'; import { Switch } from '~/components/ui'; import { useLocalize } from '~/hooks'; import store from '~/store'; export default function LaTeXParsingSwitch({ onCheckedChange, }: { onCheckedChange?: (value: boolean) => void; }) { const [LaTeXParsing, setLaTeXParsing] = useRecoilState(store.LaTeXParsing); const localize = useLocalize(); const handleCheckedChange = (value: boolean) => { setLaTeXParsing(value); if (onCheckedChange) { onCheckedChange(value); } }; return (
{localize('com_nav_latex_parsing')}
); }