import { cva, type VariantProps } from "class-variance-authority" import TripadvisorIcon from "../Icons/Customised/Socials/Tripadvisor" import styles from "./tripAdvisorChip.module.css" import { ChipStatic, withChipStatic } from "../ChipStatic" const container = cva(styles.container, { variants: { wrapper: { x05: styles["padding-x05"], x15: styles["padding-x15"], x2: styles["padding-x2"], }, }, defaultVariants: { wrapper: undefined, }, }) const _chipVariant = cva("", withChipStatic({})) interface TripAdvisorProps extends VariantProps, VariantProps { rating: number } export function TripAdvisorChip({ rating, wrapper, size = "sm", color = "Subtle", }: TripAdvisorProps) { const content = ( {rating} ) return wrapper ? ( // Wrapping the chip in a transparent container with some padding to increase the touch target
{content}
) : ( content ) }