MCPcopy Create free account
hub / github.com/F12FLASH/CTF / CodeEditorProps

Interface CodeEditorProps

7.GraphQL Apocalypse/client/src/components/code-editor.tsx:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { useEffect, useRef, useState } from "react";
2
3interface CodeEditorProps {
4 value: string;
5 onChange: (value: string) => void;
6 placeholder?: string;
7 className?: string;
8 "data-testid"?: string;
9}
10
11export function CodeEditor({ value, onChange, placeholder, className, "data-testid": testId }: CodeEditorProps) {
12 const [lineNumbers, setLineNumbers] = useState<number[]>([1]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected