import { useOptionalOrganization } from "~/hooks/useOrganizations"; import { cn } from "~/utils/cn"; import { useShowUpgradePrompt } from "../billing/v3/UpgradePrompt"; /** This container is used to surround the entire app, it correctly places the nav bar */ export function AppContainer({ children }: { children: React.ReactNode }) { return
{children}
; } export function MainBody({ children }: { children: React.ReactNode }) { return
{children}
; } /** This container should be placed around the content on a page */ export function PageContainer({ children }: { children: React.ReactNode }) { const organization = useOptionalOrganization(); const showUpgradePrompt = useShowUpgradePrompt(organization); return (
{children}
); } export function PageBody({ children, scrollable = true, className, }: { children: React.ReactNode; scrollable?: boolean; className?: string; }) { return (
{children}
); } export function MainCenteredContainer({ children, className, }: { children: React.ReactNode; className?: string; }) { return (
{children}
); }