MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / SectionState

Interface SectionState

src/components/SectionProvider.tsx:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22interface SectionState {
23 sections: Array<Section>
24 visibleSections: Array<string>
25 setVisibleSections: (visibleSections: Array<string>) => void
26 registerHeading: ({
27 id,
28 ref,
29 offsetRem,
30 }: {
31 id: string
32 ref: React.RefObject<HTMLHeadingElement>
33 offsetRem: number
34 }) => void
35}
36
37function createSectionStore(sections: Array<Section>) {
38 return createStore<SectionState>()((set) => ({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected