cpns / apps /web /src /components /ui /StarRating.tsx
rogasper's picture
Add new components for package creation and question detail, implement auto bundle modal, and update routing for builder combo. Also, include new hooks for job management and enhance UI with material icons and star rating components.
dbeb485
Raw
History Blame Contribute Delete
456 Bytes
import { MaterialIcon } from "./MaterialIcon";
export function StarRating({ value }: { value: number | null }) {
return (
<div className="flex gap-1">
{[1, 2, 3, 4, 5].map((star) => (
<MaterialIcon
key={star}
name={(value ?? 0) >= star ? "star" : "star_outline"}
className={`text-xl ${(value ?? 0) >= star ? "text-[var(--lemon-500)]" : "text-[var(--oat-border)]"}`}
/>
))}
</div>
);
}