({
className,
}: WithClassNameProps)
| 11 | import type { WithClassNameProps } from '../utilities/common'; |
| 12 | |
| 13 | export function PlusSaleLabel({ |
| 14 | className, |
| 15 | }: WithClassNameProps): ReactElement | null { |
| 16 | const { isActive, label } = usePlusSale(); |
| 17 | |
| 18 | if (!isActive || !label) { |
| 19 | return null; |
| 20 | } |
| 21 | |
| 22 | return ( |
| 23 | <Typography |
| 24 | tag={TypographyTag.Span} |
| 25 | type={TypographyType.Caption1} |
| 26 | className={classNames( |
| 27 | 'whitespace-nowrap rounded-6 px-1.5 py-0.5 text-black', |
| 28 | className, |
| 29 | )} |
| 30 | style={{ background: plusSaleLabelBg }} |
| 31 | bold |
| 32 | > |
| 33 | {label} |
| 34 | </Typography> |
| 35 | ); |
| 36 | } |
nothing calls this directly
no test coverage detected