export type FormItem = {
label?: string;
type: 'string';
default: string | null;
hidden?: boolean;
multiline?: boolean;
} | {
type: 'number';
default: number | null;
step?: number;
type: 'boolean';
default: boolean | null;
type: 'enum';
enum: string[];
type: 'array';
default: unknown[] | null;
};
export type Form = Record<string, FormItem>;