import { Stack, Typography } from "@mui/material"; import React from "react"; import { Field } from "../../data/pfa-fields"; import { helperTextStyles } from "../styles/inputLabel"; export interface ColorInputProps { field: Field; visible: boolean; formValues: { [key: string]: string }; handleChange: (id: string, value: string) => void; } export const ColorInput: React.FC = (colorInputProps) => { const { field, formValues, handleChange, visible } = colorInputProps; return ( <> {visible && ( handleChange(field.id, e.target.value)} required={field.required} style={{ width: "100%", height: "50px" }} /> {field.label} )} ); };