mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-01 20:29:03 +02:00
33 lines
882 B
TypeScript
33 lines
882 B
TypeScript
import { ReactNode } from "react";
|
|
|
|
import { Card, CardContent } from "./ui/Card";
|
|
|
|
export default function FeatureCard({
|
|
title,
|
|
description,
|
|
icon,
|
|
}: {
|
|
title: string;
|
|
description: string;
|
|
icon: ReactNode;
|
|
}) {
|
|
return (
|
|
<Card className="h-full border-[var(--border-muted)] bg-[var(--surface)]">
|
|
<CardContent className="flex h-full items-start gap-4">
|
|
<div className="flex size-10 items-center justify-center rounded-lg border border-[var(--border-subtle)] bg-[var(--surface-subtle)] text-[var(--foreground)]">
|
|
{icon}
|
|
</div>
|
|
|
|
<div className="space-y-2">
|
|
<h3 className="text-lg font-semibold text-[var(--foreground)]">
|
|
{title}
|
|
</h3>
|
|
<p className="text-sm text-[var(--foreground-muted)]">
|
|
{description}
|
|
</p>
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
);
|
|
}
|