import { useForm } from "@tanstack/react-form"; import { CellContext } from "@tanstack/react-table"; import { BaseField, BaseLayout } from "adonis-cockpit/fields"; import { InferSerializable } from "adonis-cockpit/types"; import { FC, PropsWithChildren } from "react"; export type BreadcrumbItem = { label: string; url?: string; }; export type RegisteredField = { name: string; index: FC<{ context: CellContext; field: InferSerializable; }>; detail?: FC<{ field: InferSerializable; value: any; }>; form: FC<{ field: InferSerializable; form: ReturnType; }>; }; export type RegisteredLayout = { name: string; render: FC; }>>; };