(props: { text: string })
| 19 | } |
| 20 | |
| 21 | const 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's your thread:</h3> |
| 27 | <pre style={{ whiteSpace: "pre-wrap" }}>{` |
| 28 | ${text} |
| 29 | `}</pre> |
| 30 | </Box> |
| 31 | ); |
| 32 | }; |
| 33 | |
| 34 | export const ThreadMaker = () => { |
| 35 | const [url, setUrl] = useState<string>(""); |
nothing calls this directly
no outgoing calls
no test coverage detected