"use client" import Link from "next/link" import { zodResolver } from "@hookform/resolvers/zod" import { useForm } from "react-hook-form" import * as z from "zod" import { Button } from "@/components/ui/button" import { Checkbox } from "@/components/ui/checkbox" import { toast } from "@/components/ui/use-toast" import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, } from "@/components/react-hook-form/form" const FormSchema = z.object({ mobile: z.boolean().default(false).optional(), }) export function CheckboxReactHookFormSingle() { const form = useForm>({ resolver: zodResolver(FormSchema), defaultValues: { mobile: true, }, }) function onSubmit(data: z.infer) { toast({ title: "You submitted the following values:", description: (
          {JSON.stringify(data, null, 2)}
        
), }) } return (
(
Use different settings for my mobile devices You can manage your mobile notifications in the{" "} mobile settings page.
)} /> ) }