Open History to see the last commit
1import type { Snippet } from "@/guide/snippets";
2
3import { CodeBlock } from "./code-block";
4
5/** A snippet quoted from the app's source, labelled with the file it's from. */
6export function SourceSnippet({ snippet }: { snippet: Snippet }) {
7 return <CodeBlock code={snippet.code} filename={snippet.file} />;
8}