* 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 <keithwillcode@gmail.com>
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
import Link from "next/link";
|
|
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { Button } from "@calcom/ui/components/button";
|
|
import { Icon } from "@calcom/ui/components/icon";
|
|
|
|
export default function AppNotInstalledMessage({ appName }: { appName: string }) {
|
|
const { t } = useLocale();
|
|
|
|
return (
|
|
<div className="flex h-full w-full items-center justify-center">
|
|
<div className="bg-default flex max-w-lg flex-col items-center rounded-xl border px-8 py-14 text-center shadow-md">
|
|
<div className="mb-5 rounded-full bg-gray-100 p-3 dark:bg-[#292929] ">
|
|
<Icon name="circle-alert" className="h-9 w-9 p-0.5" strokeWidth={1.5} />
|
|
</div>
|
|
<h3 className="font-cal mb-2 text-2xl font-semibold">{t("app_not_installed")}</h3>
|
|
<p className="text-subtle px-1 leading-normal">{t("visit_our_app_store")}</p>
|
|
|
|
<div className="mt-5">
|
|
<Link href={`/apps/${appName}`} passHref={true} legacyBehavior>
|
|
<Button type="button" color="secondary">
|
|
{t("go_to_app_store")}
|
|
<Icon name="arrow-up-right" className="ml-1" size={20} />
|
|
</Button>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|