import { Badge as BSBadge } from 'react-bootstrap-5' import { MergeAndOverride } from '../../../../../../types/utils' import MaterialIcon from '@/shared/components/material-icon' type BadgeProps = MergeAndOverride< React.ComponentProps, { prepend?: React.ReactNode closeBtnProps?: React.ComponentProps<'button'> } > function Badge({ prepend, children, closeBtnProps, ...rest }: BadgeProps) { return ( {prepend && {prepend}} {children} {closeBtnProps && ( )} ) } export default Badge