import { cva, type VariantProps } from "class-variance-authority" import TripadvisorIcon from "../Icons/Customised/Socials/Tripadvisor" import styles from "./tripAdvisorChip.module.css" import { Typography } from "../Typography" const container = cva(styles.container, { variants: { size: { default: null, small: styles.containerSmall, }, }, defaultVariants: { size: "default", }, }) const chip = cva(styles.tripAdvisor, { variants: { size: { default: null, small: styles.tripAdvisorSmall, }, color: { default: null, subtle: styles.tripAdvisorSubtle, }, }, defaultVariants: { size: "default", color: "default", }, }) type TripAdvisorProps = { rating: number wrapper?: boolean } & VariantProps export function TripAdvisorChip({ rating, wrapper = true, size, color, }: TripAdvisorProps) { const content = (

{rating}

) return wrapper ? ( // Wrapping the chip in a transparent container with some padding to increase the touch target
{content}
) : ( content ) }