import type { TFunction } from "next-i18next"; import getLabelValueMapFromResponses from "@calcom/lib/getLabelValueMapFromResponses"; import type { CalendarEvent } from "@calcom/types/Calendar"; import { Info } from "./Info"; export function UserFieldsResponses(props: { calEvent: CalendarEvent; t: TFunction; isOrganizer?: boolean }) { const { t, isOrganizer = false } = props; const labelValueMap = getLabelValueMapFromResponses(props.calEvent, isOrganizer); if (!labelValueMap) return null; return ( <> {Object.keys(labelValueMap).map((key) => labelValueMap[key] !== "" ? ( ) : null )} ); }