Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | import Link from "next/link"; import { Icon } from "@/components/ui/icons/Icon"; import type { DashboardCardConfig } from "@/types/admin"; export type DashboardCardProps = DashboardCardConfig; export function DashboardCard({ title, description, href, iconName}: DashboardCardProps) { return ( <Link href={href} className="block p-6 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 hover:shadow-md hover:border-blue transition-all" > <div className="flex items-center gap-4"> <div className="p-3 bg-blue/10 dark:bg-blue/20 rounded-lg text-blue"> <Icon name={iconName} size={24} /> </div> <div> <h3 className="font-semibold text-lg text-dark dark:text-gray-100"> {title} </h3> <p className="text-sm text-gray-600 dark:text-gray-400"> {description} </p> </div> </div> </Link> ); } export default DashboardCard; |