// ------------------------------------------------------------------------ // components/Wordmark.js - The SunScope sun-icon wordmark (Sun + icon + // Scope), sized for use inside modals. // // Mirrors the nav/header markup but self-contained: each instance gets a // unique clipPath id so multiple wordmarks can render on the page without // the SVG clip colliding. Size via the `fontSize` prop. // ------------------------------------------------------------------------ import { h } from '../../vendor/preact.js'; import { useState } from '../../vendor/preact-hooks.js'; import htm from '../../vendor/htm.js'; const html = htm.bind(h); let _wmCounter = 0; // bump per instance for a stable unique id export function Wordmark({ fontSize = '34px' }) { const [clipId] = useState(() => 'ss-clip-wm-' + (++_wmCounter)); return html`