"use client"; import { motion, useReducedMotion } from "framer-motion"; /** * The tick that confirms a message went out. Drawn rather than faded in: a * stroke that completes is the one moment on the site worth animating for its * own sake, and it gives the success panel something to arrive on. */ export function CheckMark({ className = "" }: { className?: string }) { const reduced = useReducedMotion(); const draw = (delay: number) => reduced ? {} : { initial: { pathLength: 0, opacity: 0 }, animate: { pathLength: 1, opacity: 1 }, transition: { duration: 0.5, delay, ease: "easeOut" as const }, }; return ( ); }