| 1 | import type { Metadata } from "next"; |
| 2 | import { RingLogViewer } from "../../ring-log-viewer"; |
| 3 | |
| 4 | interface Props { |
| 5 | params: Promise<{ owner: string; repo: string }>; |
| 6 | } |
| 7 | |
| 8 | export async function generateMetadata({ params }: Props): Promise<Metadata> { |
| 9 | const { repo } = await params; |
| 10 | return { title: `Ring · ${repo}` }; |
| 11 | } |
| 12 | |
| 13 | export default async function RingRepoPage({ params }: Props) { |
| 14 | const { owner, repo } = await params; |
| 15 | return <RingLogViewer owner={owner} repo={repo} />; |
| 16 | } |
| 17 |