| 1 | import { atLeast } from "@ghost/permissions"; |
| 2 | |
| 3 | import { ReleasesNav } |
| 4 | import { createServerClient } |
| 5 | |
| 6 | /** Keeps the releases and tags tabs mounted while switching between them. */ |
| 7 | export default async function |
| 8 | params, |
| 9 | children, |
| 10 | }: LayoutProps< |
| 11 | const { username, |
| 12 | |
| 13 | const client = |
| 14 | const repository = |
| 15 | params: { path: { |
| 16 | }); |
| 17 | |
| 18 | return ( |
| 19 | <div className="flex flex-col gap-4 |
| 20 | <ReleasesNav |
| 21 | username={username} |
| 22 | repo={repo} |
| 23 | canWrite={atLeast(repository |
| 24 | /> |
| 25 | {children} |
| 26 | </div> |
| 27 | ); |
| 28 | } |