page.tsx 555 B

12345678910111213141516171819
  1. import { fetchJson } from '@/lib/utils/server';
  2. import type { CreatorListResponse } from '@/types/response/channel/creators';
  3. import CreatorExplorer from './CreatorExplorer';
  4. export const metadata = {
  5. title: '크리에이터'
  6. };
  7. export default async function CreatorsPage()
  8. {
  9. const res = await fetchJson<CreatorListResponse>('/api/channel/creators', { method: 'GET' });
  10. const creators = res.success && res.data ? res.data.creators : [];
  11. return (
  12. <div className="mx-auto w-full px-4 py-6">
  13. <CreatorExplorer creators={creators} />
  14. </div>
  15. );
  16. }