"use client"; import { useTransition } from "react"; import { setCompletionVisibilityHours } from "@/app/settings/actions"; const OPTIONS = [ { label: "1 hour", value: 1 }, { label: "4 hours", value: 4 }, { label: "8 hours", value: 8 }, { label: "24 hours (default)", value: 24 }, { label: "48 hours", value: 48 }, { label: "7 days", value: 168 }, { label: "Never hide", value: 8760 }, ]; export function CompletionDelaySetting({ initialHours }: { initialHours: number }) { const [isPending, startTransition] = useTransition(); function handleChange(e: React.ChangeEvent) { const hours = Number(e.target.value); startTransition(() => setCompletionVisibilityHours(hours)); } return (

Show completed items for

How long checked-off items remain visible on list cards and the dashboard.

); }