import { FieldPathByValue, FieldValues } from "react-hook-form"; import { ControlledFormField } from "../common/ControlledFormField.js"; import { CommonStringFieldProps } from "../common/types.js"; import { StyledColorInput } from "../styled/StyledColorInput.js"; export function ColorFormField< TValues extends FieldValues, TName extends FieldPathByValue = FieldPathByValue< TValues, string >, >({ ...fieldProps }: CommonStringFieldProps) { return ( {...fieldProps} layout="reverse-row" > {({ value, onChange }) => ( )} ); }