MCPcopy Create free account
hub / github.com/Swizec/article-threader / Thread

Function Thread

components/ThreadMaker.tsx:21–32  ·  view source on GitHub ↗
(props: { text: string })

Source from the content-addressed store, hash-verified

19}
20
21const Thread = (props: { text: string }) => {
22 const text = props.text.replaceAll(/(\n)+/g, "\n\n");
23
24 return (
25 <Box sx={{ p: 3 }}>
26 <h3>Here&apos;s your thread:</h3>
27 <pre style={{ whiteSpace: "pre-wrap" }}>{`
28${text}
29 `}</pre>
30 </Box>
31 );
32};
33
34export const ThreadMaker = () => {
35 const [url, setUrl] = useState<string>("");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected