({ codeblock }: { codeblock: RawCode })
| 3 | import { Block, parseProps } from "codehike/blocks" |
| 4 | |
| 5 | export async function Code({ codeblock }: { codeblock: RawCode }) { |
| 6 | const { flags } = extractFlags(codeblock) |
| 7 | |
| 8 | const style = {} as any |
| 9 | if (flags.includes("1")) { |
| 10 | style["--border-color"] = "rgb(96 165 250 / 0.5)" |
| 11 | style["--bg-color"] = "rgb(96 165 250 / 0.10)" |
| 12 | } else if (flags.includes("2")) { |
| 13 | style["--border-color"] = "transparent" |
| 14 | } |
| 15 | |
| 16 | const className = flags.includes("f") ? "h-full my-0" : "my-0" |
| 17 | |
| 18 | return <TheCode codeblock={codeblock} style={style} className={className} /> |
| 19 | } |
| 20 | |
| 21 | export function Columns(props: unknown) { |
| 22 | const { left, right } = parseProps( |
nothing calls this directly
no test coverage detected
searching dependent graphs…