import { type ReactNode } from "react"; import Link from "next/link"; import { Button } from "~/components/ui/button"; import { ChevronLeft, ChevronRight, CheckCircle2, } from "lucide-react"; import { PageLayout } from "~/components/ui/page-layout"; interface TutorialStep { title: string; description: string; } interface TutorialPageProps { children: ReactNode; title: string; description: string; duration: string; level: string; steps: TutorialStep[]; prevTutorial?: { title: string; href: string; }; nextTutorial?: { title: string; href: string; }; } export function TutorialPage({ children, title, description, duration, level, steps, prevTutorial, nextTutorial, }: TutorialPageProps) { const levelColors: Record = { Beginner: "bg-green-100 text-green-700 dark:bg-green-900 dark:text-green-300", Intermediate: "bg-yellow-100 text-yellow-700 dark:bg-yellow-900 dark:text-yellow-300", Advanced: "bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300", }; return (
{children}
); } function Card({ children, className }: { children: ReactNode; className?: string }) { return (
{children}
); }