-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathchangelog-metadata-sidebar.tsx
More file actions
41 lines (38 loc) · 1.31 KB
/
Copy pathchangelog-metadata-sidebar.tsx
File metadata and controls
41 lines (38 loc) · 1.31 KB
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
32
33
34
35
36
37
38
39
40
41
import { SidebarContainer, SidebarSkeleton } from '@/components/shared/sidebar-primitives'
import { ChangelogMetadataSidebarContent } from './changelog-metadata-sidebar-content'
import type { PostId } from '@quackback/ids'
import type { PublishState } from '@/lib/shared/schemas/changelog'
import type { ChangelogAccess } from '@/lib/shared/db-types'
export { SidebarSkeleton as ChangelogMetadataSidebarSkeleton }
interface ChangelogMetadataSidebarProps {
publishState: PublishState
onPublishStateChange: (state: PublishState) => void
access: ChangelogAccess
onAccessChange: (access: ChangelogAccess) => void
linkedPostIds: PostId[]
onLinkedPostsChange: (postIds: PostId[]) => void
authorName?: string | null
}
export function ChangelogMetadataSidebar({
publishState,
onPublishStateChange,
access,
onAccessChange,
linkedPostIds,
onLinkedPostsChange,
authorName,
}: ChangelogMetadataSidebarProps) {
return (
<SidebarContainer className="overflow-y-auto">
<ChangelogMetadataSidebarContent
publishState={publishState}
onPublishStateChange={onPublishStateChange}
access={access}
onAccessChange={onAccessChange}
linkedPostIds={linkedPostIds}
onLinkedPostsChange={onLinkedPostsChange}
authorName={authorName}
/>
</SidebarContainer>
)
}