"use client"; import { useState, type ReactNode } from "react"; import { ArrowLeft, ArrowRight } from "lucide-react"; import { Button } from "@/components/ui/button"; import { CardContent } from "@/components/ui/card"; export function LinkCarousel({ primary, secondary, }: { primary: ReactNode; secondary: ReactNode; }) { const [page, setPage] = useState<0 | 1>(0); return (
{page === 0 ? primary : secondary}
{page + 1} / 2
); }