mirror of
https://github.com/penxio/penx.git
synced 2026-04-19 03:03:06 -04:00
15 lines
464 B
TypeScript
15 lines
464 B
TypeScript
import { useSpaces } from '@/hooks/useSpaces'
|
|
import { useSession } from 'next-auth/react'
|
|
import { CreatePostButton } from './CreatePostButton'
|
|
|
|
export function PostListHeader() {
|
|
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">Posts</div>
|
|
{space.userId === data?.userId && <CreatePostButton />}
|
|
</div>
|
|
)
|
|
}
|