({
buttonProps = {},
campaignId,
}: BoostButtonProps)
| 18 | } |
| 19 | |
| 20 | export function BoostButton({ |
| 21 | buttonProps = {}, |
| 22 | campaignId, |
| 23 | }: BoostButtonProps): ReactElement { |
| 24 | return ( |
| 25 | <Button |
| 26 | variant={campaignId ? ButtonVariant.Subtle : ButtonVariant.Primary} |
| 27 | color={ButtonColor.BlueCheese} |
| 28 | {...buttonProps} |
| 29 | icon={<BoostIcon secondary />} |
| 30 | > |
| 31 | {campaignId ? 'Boosting' : 'Boost'} |
| 32 | </Button> |
| 33 | ); |
| 34 | } |
| 35 | |
| 36 | export function BoostPostButton({ |
| 37 | post, |
nothing calls this directly
no outgoing calls
no test coverage detected