'use client'; import * as React from 'react'; import { motion, type Transition } from 'motion/react'; import { Label } from '@workspace/ui/components/ui/label'; import { Checkbox } from '@/registry/radix/checkbox'; const checkboxItems = [ { id: 1, label: 'Code in Assembly 💾', defaultChecked: false, }, { id: 2, label: 'Present a bug as a feature 🪲', defaultChecked: false, }, { id: 3, label: 'Push to prod on a Friday 🚀', defaultChecked: false, }, ]; const getPathAnimate = (isChecked: boolean) => ({ pathLength: isChecked ? 1 : 0, opacity: isChecked ? 1 : 0, }); const getPathTransition = (isChecked: boolean): Transition => ({ pathLength: { duration: 1, ease: 'easeInOut' }, opacity: { duration: 0.01, delay: isChecked ? 0 : 1, }, }); function PlayfulTodolist() { const [checked, setChecked] = React.useState( checkboxItems.map((i) => !!i.defaultChecked), ); return (