Spaces:
Sleeping
Sleeping
File size: 862 Bytes
fcd4478 66e93d1 fcd4478 c3e8f3d abb7588 fcd4478 f80b091 fcd4478 f80b091 fcd4478 f80b091 abb7588 f80b091 fcd4478 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import MediaGrid from '@/components/project/MediaGrid';
import { fetchProjectMedia } from '@/lib/fetch';
import { Suspense } from 'react';
import Loading from '../../../components/ui/Loading';
import Chat from '@/components/project/Chat';
interface PageProps {
params: {
projectId: string;
};
}
export default async function Page({ params }: PageProps) {
const { projectId } = params;
const mediaList = await fetchProjectMedia({ projectId: Number(projectId) });
return (
<div className="pb-[150px] pt-4 md:pt-10 h-full">
<div className="flex h-full">
<div className="w-1/2 relative border-r border-gray-300 overflow-auto">
<MediaGrid mediaList={mediaList} />
</div>
<div className="w-1/2 relative overflow-auto">
<Chat mediaList={mediaList} />
</div>
</div>
</div>
);
}
|