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

Function BoostButton

packages/shared/src/features/boost/BoostButton.tsx:20–34  ·  view source on GitHub ↗
({
  buttonProps = {},
  campaignId,
}: BoostButtonProps)

Source from the content-addressed store, hash-verified

18}
19
20export 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
36export function BoostPostButton({
37 post,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected