import Link from "next/link"; import { cn } from "@/lib/utils"; type CourseAction = { label: string; href?: string; disabled?: boolean; }; type CourseProgressCardProps = { progressPercent: number; completedLessons: number; totalLessons: number; instructor: string; durationLabel: string; stageLabel: string; availabilityLabel: string; primaryAction: CourseAction; secondaryAction?: CourseAction; helperText?: string; }; function ActionButton({ action, secondary = false }: { action: CourseAction; secondary?: boolean }) { const classes = cn( "inline-flex w-full items-center justify-center rounded-xl px-4 py-3 text-sm font-semibold transition-colors", secondary ? "border border-border bg-card text-foreground hover:bg-accent" : "acve-button-primary hover:brightness-105", action.disabled && "cursor-not-allowed opacity-55 hover:brightness-100", ); if (!action.href || action.disabled) { return ( ); } return ( {action.label} ); } export default function CourseProgressCard({ progressPercent, completedLessons, totalLessons, instructor, durationLabel, stageLabel, availabilityLabel, primaryAction, secondaryAction, helperText, }: CourseProgressCardProps) { return ( ); }