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