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

Function GoToDevCardButton

packages/shared/src/components/GoToDevCardButton.tsx:12–32  ·  view source on GitHub ↗
({
  children,
  className,
  isLocked,
}: GoToDevCardButtonProps)

Source from the content-addressed store, hash-verified

10};
11
12export default function GoToDevCardButton({
13 children,
14 className,
15 isLocked,
16}: GoToDevCardButtonProps): ReactElement {
17 return (
18 <Tooltip content={isLocked && 'Sign up to Unlock'}>
19 <div className={className}>
20 <Button
21 variant={ButtonVariant.Primary}
22 tag="a"
23 size={ButtonSize.Small}
24 href={`${process.env.NEXT_PUBLIC_WEBAPP_URL}devcard`}
25 disabled={isLocked}
26 >
27 {children}
28 </Button>
29 </div>
30 </Tooltip>
31 );
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected