import { component$, useContext } from "@builder.io/qwik"; import { ChecklistContext } from '~/store/checklist-context'; import { useLocalStorage } from "~/hooks/useLocalStorage"; import type { Section } from "~/types/PSC"; export default component$(() => { const checklists = useContext(ChecklistContext); const [completed, setCompleted] = useLocalStorage('PSC_PROGRESS', {}); return (
{checklists.value.map((section: Section, index: number) => (

{section.title}

{ section.checklist.map((item, index) => { const pointId = item.point.toLowerCase().replace(/ /g, '-'); return (
) }) }
))}
); });