import {
Alert,
AlertIcon,
AlertProps,
Button,
HStack,
Text,
useDisclosure,
} from '@chakra-ui/react'
import { Plan } from 'db'
import React from 'react'
import { UpgradeModal } from './modals/UpgradeModal'
import { LimitReached } from './modals/UpgradeModal/UpgradeModal'
export const Info = (props: AlertProps) => (
{props.children}
)
export const PublishFirstInfo = (props: AlertProps) => (
You need to publish your typebot first
)
export const UnlockPlanInfo = ({
contentLabel,
buttonLabel = 'More info',
type,
plan = Plan.PRO,
}: {
contentLabel: string
buttonLabel?: string
type?: LimitReached
plan: Plan
}) => {
const { isOpen, onOpen, onClose } = useDisclosure()
return (
{contentLabel}
)
}