/* FreeToolzHub — sticky glass header with mega menu, search, theme toggle */ function Wordmark({ size = 20 }) { return ( FreeToolzHub Free Toolz Hub ); } function Header({ go, dark, setDark, onSearch }) { const { Button, IconButton, Icon } = window.DesignSystem_3a7ab0; const { CATS, TOOLS } = window.FTH; const [mega, setMega] = React.useState(false); const [mobile, setMobile] = React.useState(false); let closeT; const navLink = (label, onClick) => ( {label} ); return (
go('/')} style={{ cursor:'pointer' }}>
setDark(!dark)} /> setMobile(true)} />
{mobile && (
setMobile(false)} style={{ position:'fixed', inset:0, zIndex:60, background:'rgba(8,15,30,.5)', backdropFilter:'blur(4px)' }}>
e.stopPropagation()} style={{ position:'absolute', top:0, right:0, height:'100%', width:'min(320px,86vw)', background:'var(--bg-page)', borderLeft:'1px solid var(--border-color)', padding:20, display:'flex', flexDirection:'column', gap:6, }}>
setMobile(false)} />
{[['Home','/'],['All Tools','/tools']].map(([l,r]) => ( { setMobile(false); go(r); }} style={{ padding:'12px', borderRadius:'var(--radius-md)', fontWeight:600, color:'var(--text-body)', cursor:'pointer' }}>{l} ))} {CATS.map(c => ( { setMobile(false); go('/tools/'+c.id); }} style={{ padding:'10px 12px', borderRadius:'var(--radius-md)', color:'var(--text-muted)', cursor:'pointer', fontSize:14 }}>{c.label} Tools ))}
)}
); } window.Wordmark = Wordmark; window.FTHHeader = Header;