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: { variant: { default: null, small: styles.containerSmall, }, }, defaultVariants: { variant: 'default', }, }) const chip = cva(styles.tripAdvisor, { variants: { variant: { default: null, small: styles.tripAdvisorSmall, }, }, defaultVariants: { variant: 'default', }, }) type TripAdvisorProps = { rating: number } & VariantProps export function TripAdvisorChip({ rating, variant }: TripAdvisorProps) { return ( // Wrapping the chip in a transparent container with some padding to increase the touch target

{rating}

) }