/** * @file dasboard/header/TrashLink.tsx * @description Client component rendering a navigation link button to the trash view with a dynamic item counter badge. */ "use client"; import Link from "next/link"; import { Trash2 } from "lucide-react"; /** * Renders an interactive trash icon link featuring hover animations and an optional item count badge. * * @param {Object} props - The component props. * @param {number} props.count - The number of items currently in the trash. * @returns {JSX.Element} The rendered trash button component. */ export default function TrashLink({ count }: { count: number }) { return ( {count > 0 && ( {count} )} ); }