"use client"; import { useEffect, useState } from "react"; import { Label } from "@/components/ui/label"; import { Switch } from "@/components/ui/switch"; import { isToursOptedOut, setToursOptedOut } from "@/lib/tours/dismissals"; /** * Per-browser guided-tours preference. Lives in localStorage (same store the * tour dismissals use), not the user record: tours are a device concern, and * the header replay control stays available either way. */ export function ToursPreference() { const [optedOut, setOptedOut] = useState(false); const [mounted, setMounted] = useState(false); useEffect(() => { setOptedOut(isToursOptedOut()); setMounted(true); }, []); return (
Short guided walkthroughs the first time you visit a page. You can always replay the current page's tour from the header help icon.