import { FormField } from "@inato-form/core" import type { Array } from "effect" import { Schema } from "effect" interface CheckboxGroupFC extends React.FC<{ label?: React.ReactNode className?: string options: ReadonlyArray<{ label: React.ReactNode; value: Value }> }> {} export class CheckboxGroup extends FormField.FormField("@inato-form/fields/CheckboxGroup")() { static Default = >( ...literals: Literals ) => this.make({ schema: Schema.HashSet(Schema.Literal(...literals)), defaultValue: [] }).decorate>() }