2023-03-25 00:59:04 +00:00
|
|
|
import { Suspense } from "react";
|
|
|
|
|
2023-04-11 16:19:27 +00:00
|
|
|
import NoSSR from "@calcom/core/components/NoSSR";
|
2023-06-01 12:17:11 +00:00
|
|
|
import { Meta, SkeletonText, SkeletonContainer } from "@calcom/ui";
|
2023-03-25 00:59:04 +00:00
|
|
|
|
|
|
|
import { FlagAdminList } from "../components/FlagAdminList";
|
|
|
|
|
2023-06-01 12:17:11 +00:00
|
|
|
const SkeletonLoader = () => {
|
|
|
|
return (
|
|
|
|
<SkeletonContainer>
|
|
|
|
<div className="divide-subtle mt-6 mb-8 space-y-6">
|
|
|
|
<SkeletonText className="h-8 w-full" />
|
|
|
|
<SkeletonText className="h-8 w-full" />
|
|
|
|
</div>
|
|
|
|
</SkeletonContainer>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2023-03-25 00:59:04 +00:00
|
|
|
export const FlagListingView = () => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Meta title="Feature Flags" description="Here you can toggle your Cal.com instance features." />
|
2023-04-11 16:19:27 +00:00
|
|
|
<NoSSR>
|
2023-06-01 12:17:11 +00:00
|
|
|
<Suspense fallback={<SkeletonLoader />}>
|
2023-04-11 16:19:27 +00:00
|
|
|
<FlagAdminList />
|
|
|
|
</Suspense>
|
|
|
|
</NoSSR>
|
2023-03-25 00:59:04 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|