Merge branch 'dev' into dev-kartik

This commit is contained in:
Kartik Datrika
2026-03-24 15:41:25 +05:30
55 changed files with 3413 additions and 168 deletions

View File

@@ -2,6 +2,7 @@ import type { HTMLAttributes, SVGProps } from "react";
import { useId } from "react";
import { cx } from "@/utils/cx";
// eslint-disable-next-line react-refresh/only-export-components
export const getStarProgress = (starPosition: number, rating: number, maxRating: number = 5) => {
// Ensure rating is between 0 and 5
const clampedRating = Math.min(Math.max(rating, 0), maxRating);