MCPcopy Create free account
hub / github.com/tinyplex/tinybase / Readme

Function Readme

site/ui/Readme.tsx:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import {MODULES} from './common.ts';
6
7export const Readme: NoPropComponent = (): any => {
8 const [summary, body] = useReadme(usePageNode());
9 const markdown = summary + '\n\n' + body.replaceAll(/<embed.*? \/>/g, '');
10
11 return <Markdown markdown={markdown} html={true} skipCode={true} />;
12};
13
14const toKb = (bytes: number | undefined) =>
15 bytes != null ? `${(bytes / 1000).toFixed(1)}kB` : '';

Callers

nothing calls this directly

Calls 1

useReadmeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…