MCPcopy
hub / github.com/code-hike/codehike / Code

Function Code

apps/web/content/blog/remotion/code.tsx:5–19  ·  view source on GitHub ↗
({ codeblock }: { codeblock: RawCode })

Source from the content-addressed store, hash-verified

3import { Block, parseProps } from "codehike/blocks"
4
5export 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
21export function Columns(props: unknown) {
22 const { left, right } = parseProps(

Callers

nothing calls this directly

Calls 1

extractFlagsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…