Docker images / prepare-release (push) Successful in 5s
Docker images / backend-image (push) Successful in 2m37s
Docker images / frontend-image (push) Successful in 2m22s
Docker images / updater-image (push) Successful in 38s
Docker images / notify-webhook (push) Has been skipped
Docker images / publish-release (push) Successful in 8s
25 lines
504 B
TypeScript
25 lines
504 B
TypeScript
"use client"
|
|
|
|
import { Switch } from "@/components/ui/switch"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
interface FormToggleProps {
|
|
checked: boolean
|
|
onChange: (value: boolean) => void
|
|
disabled?: boolean
|
|
className?: string
|
|
}
|
|
|
|
function FormToggle({ checked, onChange, disabled, className }: FormToggleProps) {
|
|
return (
|
|
<Switch
|
|
checked={checked}
|
|
onCheckedChange={onChange}
|
|
disabled={disabled}
|
|
className={cn(className)}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { FormToggle, type FormToggleProps }
|