File size: 600 Bytes
a3f1817
8f2b05f
df83860
b965e2b
b161bd3
df83860
a3f1817
 
b161bd3
8f2b05f
b161bd3
 
8f2b05f
b161bd3
 
8f2b05f
df83860
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { AppQueryProps } from "@/types"

import { Main } from "../main"
import { getChannel } from "../server/actions/ai-tube-hf/getChannel"
import { getChannelVideos } from "../server/actions/ai-tube-hf/getChannelVideos"

export default async function ChannelPage({ searchParams: { c: channelId } }: AppQueryProps) {
  const channel = await getChannel({ channelId, neverThrow: true })

  const publicChannelVideos = await getChannelVideos({
    channel: channel,
    status: "published",
    neverThrow: true,
  })
  
  return (<Main channel={channel} publicChannelVideos={publicChannelVideos} />)
}