mirror of
https://github.com/penxio/penx.git
synced 2026-04-19 03:03:06 -04:00
15 lines
506 B
TypeScript
15 lines
506 B
TypeScript
import { CreateChannelDialog } from '@/components/CreateChannelDialog/CreateChannelDialog'
|
|
import { useSpaces } from '@/hooks/useSpaces'
|
|
import { useSession } from 'next-auth/react'
|
|
|
|
export function ChannelListHeader() {
|
|
const { space } = useSpaces()
|
|
const { data } = useSession()
|
|
return (
|
|
<div className="flex justify-between items-center gap-2 py-2">
|
|
<div className="text-neutral-900 font-bold">Chat</div>
|
|
{space.userId === data?.userId && <CreateChannelDialog />}
|
|
</div>
|
|
)
|
|
}
|