import { getEventLocationType } from "@calcom/app-store/locations"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Tooltip } from "@calcom/ui"; import { MapPin } from "@calcom/ui/components/icon"; import type { PublicEvent } from "../../types"; import { EventMetaBlock } from "./Details"; export const EventLocations = ({ event }: { event: PublicEvent }) => { const { t } = useLocale(); const locations = event.locations; if (!locations?.length) return null; return ( {locations.length === 1 && (
{t(getEventLocationType(locations[0].type)?.label ?? "")}
)} {locations.length > 1 && (

{t("select_on_next_step")}

    {locations.map((location) => (
  • {t(getEventLocationType(location.type)?.label ?? "")}
  • ))}
}> {t("num_locations", { num: locations.length })}
)}
); };