mirror of
https://github.com/tale/headplane.git
synced 2026-10-27 06:57:53 +00:00
17 lines
530 B
TypeScript
17 lines
530 B
TypeScript
import {
|
|
DynamicCodeBlock as Base,
|
|
type DynamicCodeblockProps,
|
|
} from "fumadocs-ui/components/dynamic-codeblock";
|
|
|
|
// A code block built from a string, for code that interpolates values like
|
|
// `versions`. Matches the static blocks' themes and styling.
|
|
export default function DynamicCodeBlock(props: DynamicCodeblockProps) {
|
|
return (
|
|
<Base
|
|
codeblock={{ className: "border-line bg-subtle my-5 rounded-lg" }}
|
|
options={{ themes: { light: "github-light", dark: "github-dark" } }}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|