Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

346 B
Raw Blame
import { Switch } from '@/components/ui/switch'

// Checkbox or switch component
type CheckboxControlProps = {
  checked: boolean
  onChange: (checked: boolean) => void
}

export function CheckboxControl({ checked, onChange }: CheckboxControlProps) {
  return (
    <Switch checked={checked} onCheckedChange={(value) => onChange(value)} />
  )
}