Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
565 B

import type { LucideIcon } from 'lucide-react';
import { cn } from '../../lib/classname';
type CourseStatPillProps = {
icon: LucideIcon;
label: string;
className?: string;
};
export function CourseStatPill(props: CourseStatPillProps) {
const { icon: Icon, label, className } = props;
return (
<div
className={cn(
'flex items-center gap-2 rounded-full border border-slate-400 px-2.5 py-1 text-sm',
className,
)}
>
<Icon className="size-3.5 shrink-0 stroke-[2.5]" />
<span>{label}</span>
</div>
);
}