import { Path, UseFormReturn } from "react-hook-form";
import { TData } from "../../types";

export interface FormKeyConfig<T extends TData> {
  key: Path<T>;
  label: string;
  required?: boolean;
  type?: string;
  canEdit?: boolean;
  render?: (
    form: UseFormReturn<T>,
    opts: { key: Path<T>; label: string; required?: boolean }
  ) => JSX.Element;
}
