2
0

feat: ️ Add docs and connect Stripe

This commit is contained in:
Baptiste Arnaud
2022-02-14 16:41:39 +01:00
parent aeb3e4caa7
commit 56bd5fafc3
50 changed files with 6332 additions and 685 deletions

View File

@ -0,0 +1,16 @@
import { Button, ButtonProps, useDisclosure } from '@chakra-ui/react'
import React from 'react'
import { UpgradeModal } from '../modals/UpgradeModal.'
import { LimitReached } from '../modals/UpgradeModal./UpgradeModal'
type Props = { type?: LimitReached } & ButtonProps
export const UpgradeButton = ({ type, ...props }: Props) => {
const { isOpen, onOpen, onClose } = useDisclosure()
return (
<Button colorScheme="blue" {...props} onClick={onOpen}>
Upgrade
<UpgradeModal isOpen={isOpen} onClose={onClose} type={type} />
</Button>
)
}