import React from 'react'; import { useNavigate } from 'react-router-dom'; interface ShortcutCardProps { id: string; title: string; icon: React.ReactNode; route: string; gradient: string; visible?: boolean; } const ShortcutCard: React.FC = ({ id, title, icon, route, gradient, visible = true }) => { const navigate = useNavigate(); if (!visible) return null; const handleClick = () => { navigate(route); }; return (
{/* Background overlay for better text visibility */}
{/* Content */}
{/* Icon */}
{icon}
{/* Title */}

{title}

{/* Hover glow effect */}
); }; export default ShortcutCard;