mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-18 16:02:28 +00:00
22 lines
358 B
TypeScript
22 lines
358 B
TypeScript
import { type JSX } from "react";
|
|
|
|
export function Card({
|
|
className,
|
|
title,
|
|
children,
|
|
href,
|
|
}: {
|
|
className?: string;
|
|
title: string;
|
|
children: React.ReactNode;
|
|
href: string;
|
|
}): JSX.Element {
|
|
return (
|
|
<a className={className} href={href}>
|
|
<h2>
|
|
{title} <span>-></span>
|
|
</h2>
|
|
<p>{children}</p>
|
|
</a>
|
|
);
|
|
}
|