MCPcopy
hub / github.com/iuroc/bilidown / classStr

Function classStr

client/src/header.ts:8–8  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

6
7export default () => {
8 const classStr = (name: string) => van.derive(() => `text-nowrap nav-link ${now.val.split('/')[0] == name ? 'active' : ''}`)
9
10 return div({ class: 'hstack gap-4' },
11 div({ class: 'fs-4 fw-bold text-nowrap' }, 'Bilidown'),

Callers 1

header.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected