tasko/app/(platform)/(dashboard)/organization/[organizationId]/page.tsx

26 lines
644 B
TypeScript
Raw Normal View History

2024-02-16 01:49:19 +00:00
import { Suspense } from 'react';
2024-02-15 02:30:10 +00:00
2024-02-16 01:49:19 +00:00
import { Separator } from '@/components/ui/separator';
import { checkSubscription } from '@/lib/subscription';
2024-02-15 02:30:10 +00:00
2024-02-16 01:49:19 +00:00
import { Info } from './_components/info';
import { BoardList } from './_components/board-list';
2024-02-15 02:30:10 +00:00
const OrganizationIdPage = async () => {
const isPro = await checkSubscription();
return (
2024-02-16 01:49:19 +00:00
<div className='mb-20 w-full'>
2024-02-15 02:30:10 +00:00
<Info isPro={isPro} />
2024-02-16 01:49:19 +00:00
<Separator className='my-4' />
<div className='px-2 md:px-4'>
2024-02-15 02:30:10 +00:00
<Suspense fallback={<BoardList.Skeleton />}>
<BoardList />
</Suspense>
</div>
</div>
);
};
export default OrganizationIdPage;