import { getEventLocationType, locationKeyToString } from "@calcom/app-store/locations"; import { Props } from "./pages/AvailabilityPage"; export function AvailableEventLocations({ locations }: { locations: Props["eventType"]["locations"] }) { return (

{locations.map((location) => { const eventLocationType = getEventLocationType(location.type); if (!eventLocationType) { // It's possible that the location app got uninstalled return null; } return ( {`${eventLocationType.label} {locationKeyToString(location)} ); })}

); }