import { FieldInputProps, FieldMetaProps } from "formik"; import React from "react"; export type FieldProps = { [key: string]: any; name: string; label: string; labelColor?: `#${string}`; }; export type ComponentProps = { field: FieldInputProps; meta: FieldMetaProps; label: string; }; export type InputFieldProps = { floating?: boolean; component?: (props: ComponentProps) => JSX.Element; } & FieldProps; export type RadioFieldProps = { component?: (props: ComponentProps) => JSX.Element; style?: React.CSSProperties; options: { label: string; value: any; disabled?: boolean; labelColor?: `#${string}`; }[]; } & FieldProps; export type SelectFieldProps = { readonly?: boolean; isMulti?: boolean; options: any[]; component?: (props: ComponentProps) => JSX.Element; } & FieldProps;