MCPcopy Create free account
hub / github.com/bvaughn/react-window / DebugData

Function DebugData

integrations/tests/src/components/DebugData.tsx:3–14  ·  view source on GitHub ↗
({ data }: { data: object })

Source from the content-addressed store, hash-verified

1import { cn } from "react-lib-tools";
2
3export function DebugData({ data }: { data: object }) {
4 return (
5 <pre
6 className={cn(
7 "p-2 resize-none rounded-md font-mono text-xs",
8 "border border-2 border-slate-800 focus:outline-none focus:border-sky-700"
9 )}
10 >
11 <code className="text-xs">{JSON.stringify(data, replacer, 2)}</code>
12 </pre>
13 );
14}
15
16function replacer(_key: string, value: unknown) {
17 if (typeof value === "number") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected