frontispiece / apps / example / view / section-view.ts
section-view.ts
Raw
import { html, useInkHookState } from "./bootstrap"

export const SectionView = () => {
	const inkState = useInkHookState();
	return html`<div className="section-info">Primary Path: ${inkState.getActiveSection()?.primaryPath}</div>`
}