"use client"; import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox"; import { cn } from "@/lib/utils"; import { HandDrawnCheck } from "@/components/board/hand-drawn-check"; /** * The to-do checkbox for a group card: its stroke matches the card's own * accent color instead of the neutral theme border, and its checkmark is a * solid, slightly-oversized "hand-drawn" tick (rendered white on dark * theme, black on light theme) that pokes just above the box. */ export function TodoCheckbox({ checked, onCheckedChange, accentColor, isDark, className, "aria-label": ariaLabel, }: { checked: boolean; onCheckedChange: (checked: boolean) => void; accentColor: string; isDark: boolean; className?: string; "aria-label": string; }) { const checkColor = isDark ? "#ffffff" : "#000000"; return ( {/* The check's own path dips a couple of viewBox units above y=0, so only its top tip overhangs the box -- the sides and bottom stay flush, keeping the effect to "pokes out the top" rather than the icon just being oversized on every edge. */} ); }