MCPcopy Create free account
hub / github.com/code100x/cms / CodeBlockProps

Interface CodeBlockProps

src/components/CodeBlock.tsx:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { toast } from 'sonner';
4
5interface CodeBlockProps {
6 block: {
7 properties: {
8 title: string[]; // Adjust this based on your actual block structure
9 };
10 };
11}
12
13const CodeBlock: React.FC<CodeBlockProps> = ({ block }) => {
14 const code: string = block.properties.title[0].toString(); // Extract the code string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected