'use client' import { forwardRef } from 'react' import classNames from 'classnames' import { Text } from '~/src/components/Text' import { type BaseTagBadgeProps, type BaseTagBadgeSize, type BaseTagBadgeTextProps, } from './BaseTagBadge.types' import styles from './BaseTagBadge.module.scss' function getProperTypo(size: BaseTagBadgeSize) { return ( { xs: '11', s: '13', m: '14', l: '15', } as const )[size] } /** * `BaseTagBadge` is the component on which `Tag` and `Badge` components are based. */ export const BaseTagBadge = forwardRef( function Tag({ size, variant, children, className, ...rest }, forwardedRef) { return (
{children}
) } ) /** * `BaseTagBadgeText` is the component on which `Tag` and `Badge` components are based. */ export const BaseTagBadgeText = forwardRef< HTMLDivElement, BaseTagBadgeTextProps >(function BaseTagBadgeText({ size, children, ...rest }, forwardedRef) { return ( {children} ) })