24 lines
876 B
TypeScript
24 lines
876 B
TypeScript
import { StarIcon } from "lucide-react";
|
|
|
|
import { Container } from "@/shared/ui/container";
|
|
import { RestaurantPanel } from "@/shared/ui/restaurant-panel";
|
|
|
|
type InfoItem = { title: string; text: string };
|
|
|
|
export function InfoColumns({ title, items }: { title: string; items: readonly InfoItem[] }) {
|
|
return (
|
|
<Container className="py-12">
|
|
<h2 className="mb-6 font-display text-4xl font-semibold">{title}</h2>
|
|
<div className="grid gap-4 md:grid-cols-3">
|
|
{items.map((item) => (
|
|
<RestaurantPanel key={item.title} className="p-6">
|
|
<StarIcon className="mb-8 size-5 text-primary" />
|
|
<h3 className="font-display text-2xl font-semibold">{item.title}</h3>
|
|
<p className="mt-3 text-sm leading-6 text-muted-foreground">{item.text}</p>
|
|
</RestaurantPanel>
|
|
))}
|
|
</div>
|
|
</Container>
|
|
);
|
|
}
|