import React from "react" import SelectInput from "./SelectInput" import { Utils } from "./Utils" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { faClock } from "@fortawesome/free-regular-svg-icons" // Define a type for your props to improve type-checking type ClientFieldProps = { testingCenters: string[] clients: string[] } // Destructure the props in the function parameter const ClientField: React.FC = ({ testingCenters, clients }) => { return (
{testingCenters.map((testingCenter) => (
{testingCenter}
{clients.map((option: string) => ( ))}
))}
) } export default ClientField