judge4c-demo/src/app/snippets/[id]/page.tsx

11 lines
236 B
TypeScript
Raw Normal View History

interface SnippetShowPageProps {
params: Promise<{
id: string;
}>;
}
export default async function SnippetShowPage(props: SnippetShowPageProps) {
const { id } = await props.params;
return <div>Show a snippet: {id}</div>;
}