import type { LucideIcon } from "lucide-react"; import { cls } from "@/lib/utils"; import { resolveIcon } from "@/utils/resolve-icon"; type Item = { icon: string | LucideIcon; title: string; subtitle: string; detail: string }; const POS = ["-translate-y-14 hover:-translate-y-20", "translate-x-16 hover:-translate-y-4", "translate-x-32 translate-y-16 hover:translate-y-10"]; const TiltedStackCards = ({ items }: { items: [Item, Item, Item] }) => (
{items.map((item, i) => (
{(() => { const Icon = resolveIcon(item.icon); return ; })()}

{item.title}

{item.subtitle}

{item.detail}

))}
); export default TiltedStackCards;