import { useTranslation } from 'react-i18next' import CustomWebAppBrand from '../custom-web-app-brand' import s from '../style.module.css' import GridMask from '@/app/components/base/grid-mask' import UpgradeBtn from '@/app/components/billing/upgrade-btn' import { useProviderContext } from '@/context/provider-context' import { Plan } from '@/app/components/billing/type' import { contactSalesUrl } from '@/app/components/billing/config' const CustomPage = () => { const { t } = useTranslation() const { plan, enableBilling } = useProviderContext() const showBillingTip = enableBilling && plan.type === Plan.sandbox const showContact = enableBilling && (plan.type === Plan.professional || plan.type === Plan.team) return (
{ showBillingTip && (
{t('custom.upgradeTip.prefix')}
{t('custom.upgradeTip.suffix')}
) } { showContact && (
{t('custom.customize.prefix')} {t('custom.customize.contactUs')} {t('custom.customize.suffix')}
) }
) } export default CustomPage