import { $, component$, useContext } from "@builder.io/qwik"; import Icon from "~/components/core/icon"; import type { Section } from '~/types/PSC'; import { useTheme } from '~/store/theme-store'; import articles from '~/data/articles'; import { ChecklistContext } from '~/store/checklist-context'; export default component$(() => { const data = useContext(ChecklistContext); const { theme, setTheme } = useTheme(); const themes = [ 'dark', 'light', 'night', 'cupcake', 'bumblebee', 'corporate', 'synthwave', 'retro', 'valentine', 'halloween', 'aqua', 'lofi', 'fantasy', 'dracula' ]; const deleteAllData = $(() => { const isConfirmed = confirm('Are you sure you want to delete all local data? This will erase your progress.'); if (isConfirmed) { localStorage.clear(); location.reload(); } }); return ( <>
); });