cal.pub0.org/packages/emails/src/components/CustomInputs.tsx

19 lines
470 B
TypeScript

import type { CalendarEvent } from "@calcom/types/Calendar";
import { Info } from "./Info";
export function CustomInputs(props: { calEvent: CalendarEvent }) {
const { customInputs } = props.calEvent;
if (!customInputs) return null;
return (
<>
{Object.keys(customInputs).map((key) =>
customInputs[key] !== "" ? (
<Info key={key} label={key} description={`${customInputs[key]}`} withSpacer />
) : null
)}
</>
);
}