(svgPath: string)
| 25 | const isDarkMode = () => window.matchMedia("(prefers-color-scheme: dark)").matches |
| 26 | |
| 27 | const fetchSvgContent = async (svgPath: string): Promise<string> => { |
| 28 | try { |
| 29 | const response = await fetch(svgPath) |
| 30 | const svgText = await response.text() |
| 31 | return svgText |
| 32 | } catch (err) { |
| 33 | console.error("Failed to fetch SVG content:", err) |
| 34 | throw err |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | export function Header(props: { zen?: boolean; go?: boolean; hideGetStarted?: boolean }) { |
| 39 | const navigate = useNavigate() |
no test coverage detected