cal.pub0.org/packages/features/flags/pages/flag-listing-view.tsx

31 lines
786 B
TypeScript
Raw Normal View History

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";
import { FlagAdminList } from "../components/FlagAdminList";
2023-06-01 12:17:11 +00:00
const SkeletonLoader = () => {
return (
<SkeletonContainer>
<div className="divide-subtle mb-8 mt-6 space-y-6">
2023-06-01 12:17:11 +00:00
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
</div>
</SkeletonContainer>
);
};
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>
</>
);
};