Co-authored-by: Alex van Andel <me@alexvanandel.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Bailey Pumfleet <bailey@pumfleet.co.uk> Co-authored-by: Peer Richelsen <peer@cal.com> Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
32 lines
986 B
TypeScript
32 lines
986 B
TypeScript
import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired";
|
|
import Shell from "@calcom/features/shell/Shell";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { HeadSeo } from "@calcom/ui";
|
|
|
|
import type { AppPageProps } from "./AppPage";
|
|
import { AppPage } from "./AppPage";
|
|
|
|
const ShellHeading = () => {
|
|
const { t } = useLocale();
|
|
return <span className="block py-2">{t("app_store")}</span>;
|
|
};
|
|
|
|
export default function WrappedApp(props: AppPageProps) {
|
|
return (
|
|
<Shell smallHeading isPublic hideHeadingOnMobile heading={<ShellHeading />} backPath="/apps" withoutSeo>
|
|
<HeadSeo
|
|
title={props.name}
|
|
description={props.description}
|
|
app={{ slug: props.logo, name: props.name, description: props.description }}
|
|
/>
|
|
{props.licenseRequired ? (
|
|
<LicenseRequired>
|
|
<AppPage {...props} />
|
|
</LicenseRequired>
|
|
) : (
|
|
<AppPage {...props} />
|
|
)}
|
|
</Shell>
|
|
);
|
|
}
|