import { Icon } from "./Icon.jsx"; function Stars({ rating }) { const steps = Math.min(10, Math.max(0, Math.round(rating * 2))); const full = Math.floor(steps / 2); const half = steps % 2; return ( ); } export function Reviews({ review, printful }) { if (!review || review.status !== "ok") return null; const count = Number(review.count).toLocaleString("en-US"); return (
Reviews

{`${review.rating.toFixed(1)} from ${count} ${review.count === 1 ? "review" : "reviews"}`}

{`Printful's customers wrote these about the blank ${review.title}, not about this design or this shop. Tap the rating to read them on Printful.`}

); }