/** * ClientField Component * * Renders a list of testing centers with associated client selection inputs. * Each testing center allows for the selection of a client from a provided list. */ import { faClock } from "@fortawesome/free-regular-svg-icons" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import React from "react" import SelectInput from "./SelectInput" import { Utils } from "./Utils" /** * Props for ClientField component. * * @param testingCenters Array of testing center names to be displayed. * @param clients Array of client names available for selection. */ type ClientFieldProps = { testingCenters: string[] clients: string[] } const ClientField: React.FC = ({ testingCenters, clients }) => { return (
{/* Render a selection input for each testing center, allowing a client to be chosen for each. */} {testingCenters.map((testingCenter) => (
{testingCenter}
{clients.map((option: string) => ( ))}
))}
) } export default ClientField