({
children,
className,
isLocked,
}: GoToDevCardButtonProps)
| 10 | }; |
| 11 | |
| 12 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected