MCPcopy Create free account
hub / github.com/dailydotdev/apps / PlusSaleLabel

Function PlusSaleLabel

packages/shared/src/components/plus/PlusSaleLabel.tsx:13–36  ·  view source on GitHub ↗
({
  className,
}: WithClassNameProps)

Source from the content-addressed store, hash-verified

11import type { WithClassNameProps } from '../utilities/common';
12
13export 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}

Callers

nothing calls this directly

Calls 1

usePlusSaleFunction · 0.90

Tested by

no test coverage detected