/** ======== STAR ======== */ export function SVGStarFill(props: React.SVGProps) { return ( ); } export function SVGStarHalf(props: React.SVGProps) { return ( ); } export function SVGStarLine(props: React.SVGProps) { return ( ); } export function StarRating({ rating }: { rating: number }) { const getStarIcon = (i: number) => { if (rating >= i + 1) { return ; } else if (rating >= i + 0.5) { return ; } return ; }; return (
{Array.from({ length: 5 }, (_, i) => getStarIcon(i))}
); } /** ======== HEART ======== */ export function SVGHeartFill(props: React.SVGProps) { return ( ); } export function SVGHeartHalf(props: React.SVGProps) { return ( ); } export function SVGHeartLine(props: React.SVGProps) { return ( ); }