mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 00:51:12 -05:00
29 lines
862 B
TypeScript
29 lines
862 B
TypeScript
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
|
import { LucideIcon } from 'lucide-react';
|
|
|
|
interface ContactInfoCardProps {
|
|
icon: LucideIcon;
|
|
title: string;
|
|
description: string;
|
|
content: React.ReactNode;
|
|
}
|
|
|
|
export function ContactInfoCard({ icon: Icon, title, description, content }: ContactInfoCardProps) {
|
|
return (
|
|
<Card>
|
|
<CardHeader>
|
|
<div className="flex items-center gap-3">
|
|
<div className="p-2 rounded-lg bg-primary/10">
|
|
<Icon className="h-5 w-5 text-primary" />
|
|
</div>
|
|
<div>
|
|
<CardTitle className="text-base">{title}</CardTitle>
|
|
<CardDescription className="text-sm">{description}</CardDescription>
|
|
</div>
|
|
</div>
|
|
</CardHeader>
|
|
<CardContent>{content}</CardContent>
|
|
</Card>
|
|
);
|
|
}
|