mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* availability * refactor * add loader * improve * update * fix loader * rename * satisfying types * refactor * remove log * add CTA to skeleton * refactor * fix revalidations * refactor * update * finish
26 lines
772 B
TypeScript
26 lines
772 B
TypeScript
"use client";
|
|
|
|
import { ShellMainAppDir } from "app/(use-page-wrapper)/(main-nav)/ShellMainAppDir";
|
|
|
|
import SkeletonLoader from "@calcom/features/availability/components/SkeletonLoader";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
|
|
import { AvailabilityCTA } from "~/availability/availability-view";
|
|
|
|
export default function AvailabilityLoader() {
|
|
const { t } = useLocale();
|
|
const toggleGroupOptions = [
|
|
{ value: "mine", label: t("my_availability") },
|
|
{ value: "team", label: t("team_availability") },
|
|
];
|
|
|
|
return (
|
|
<ShellMainAppDir
|
|
heading={t("availability")}
|
|
subtitle={t("configure_availability")}
|
|
CTA={<AvailabilityCTA toggleGroupOptions={toggleGroupOptions} />}>
|
|
<SkeletonLoader />
|
|
</ShellMainAppDir>
|
|
);
|
|
}
|