import Image from 'next/image'; import { cn } from '@/lib/utils'; export type Difficulty = 'easy' | 'medium' | 'hard'; export default function Badge({ title, path, alt, type = 'easy', earned = false }: { title: string; path: string; alt: string; type?: Difficulty; earned?: boolean; }) { return (