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]>
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { Badge } from "@calcom/ui/components/badge";
|
|
import { Button } from "@calcom/ui/components/button";
|
|
import { Switch } from "@calcom/ui/components/form";
|
|
|
|
import { TroubleshooterListItemContainer } from "./TroubleshooterListItemContainer";
|
|
|
|
function AvailabiltyItem() {
|
|
const { t } = useLocale();
|
|
return (
|
|
<TroubleshooterListItemContainer
|
|
title="Office Hours"
|
|
subtitle="Mon-Fri; 9:00 AM - 5:00 PM"
|
|
suffixSlot={
|
|
<div>
|
|
<Badge variant="green" withDot size="sm">
|
|
Connected
|
|
</Badge>
|
|
</div>
|
|
}>
|
|
<div className="flex flex-col gap-3">
|
|
<p className="text-subtle text-sm font-medium leading-none">{t("date_overrides")}</p>
|
|
<Switch label="[email protected]" />
|
|
</div>
|
|
</TroubleshooterListItemContainer>
|
|
);
|
|
}
|
|
|
|
export function AvailabiltySchedulesContainer() {
|
|
const { t } = useLocale();
|
|
return (
|
|
<div className="flex flex-col space-y-3">
|
|
<p className="text-sm font-medium leading-none">{t("availabilty_schedules")}</p>
|
|
<AvailabiltyItem />
|
|
<Button color="secondary" className="justify-center gap-2">
|
|
{t("manage_availabilty_schedules")}
|
|
</Button>
|
|
</div>
|
|
);
|
|
}
|