mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* Icon and IconName * Button and ButtonGroup * UserAvatar * AvatarGroup * Avatar * WizardLayout * Dialogs * EmptyScreen * showToast and TextField * Editor * Skeleton * Skeleton * TopBanner and showToast * Button again * more * perf: Remove app-store reference from @calcom/ui * more * Fixing types * Icon * Fixed casing * dropdown * more * Select * more * Badge * List * more * Divider * more * fix * fix type check * refactor * fix * fix * fix * fix * fix * fix * fix * fix type check * fix * fix * fix * fix * more * more * more * more * add index file to components/command * fix * fix * fix * fix imports * fix * fix * fix * fix * fix * fix * fix * fix build errors * fix build errors * fix --------- Co-authored-by: Keith Williams <[email protected]>
42 lines
1.4 KiB
TypeScript
42 lines
1.4 KiB
TypeScript
"use client";
|
|
|
|
import dayjs from "@calcom/dayjs";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { detectBrowserTimeFormat } from "@calcom/lib/timeFormat";
|
|
import type { inferSSRProps } from "@calcom/types/inferSSRProps";
|
|
import { Icon } from "@calcom/ui/components/icon";
|
|
import { Button } from "@calcom/ui/components/button";
|
|
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
|
|
|
import type { getServerSideProps } from "@lib/video/meeting-not-started/[uid]/getServerSideProps";
|
|
|
|
export type PageProps = inferSSRProps<typeof getServerSideProps>;
|
|
|
|
export default function MeetingNotStarted(props: PageProps) {
|
|
const { t } = useLocale();
|
|
return (
|
|
<>
|
|
<main className="mx-auto my-24 max-w-3xl">
|
|
<EmptyScreen
|
|
Icon="clock"
|
|
headline={t("this_meeting_has_not_started_yet")}
|
|
description={
|
|
<>
|
|
<h2 className="mb-2 text-center font-medium">{props.booking.title}</h2>
|
|
<p className="text-subtle text-center">
|
|
<Icon name="calendar" className="-mt-1 mr-1 inline-block h-4 w-4" />
|
|
{dayjs(props.booking.startTime).format(`${detectBrowserTimeFormat}, dddd DD MMMM YYYY`)}
|
|
</p>
|
|
</>
|
|
}
|
|
buttonRaw={
|
|
<Button data-testid="return-home" href="/event-types" EndIcon="arrow-right">
|
|
{t("go_back")}
|
|
</Button>
|
|
}
|
|
/>
|
|
</main>
|
|
</>
|
|
);
|
|
}
|