import { useRecoilState } from 'recoil'; import { Switch } from '~/components/ui'; import { useLocalize } from '~/hooks'; import { cn } from '~/utils'; import store from '~/store'; export default function AutoSendPrompt({ onCheckedChange, className = '', }: { onCheckedChange?: (value: boolean) => void; className?: string; }) { const [autoSendPrompts, setAutoSendPrompts] = useRecoilState(store.autoSendPrompts); const localize = useLocalize(); const handleCheckedChange = (value: boolean) => { setAutoSendPrompts(value); if (onCheckedChange) { onCheckedChange(value); } }; return (
{localize('com_nav_auto_send_prompts')}
); }