import { useTranslation } from 'react-i18next' import { contactSalesUrl } from '@/app/components/billing/config' import { Plan } from '@/app/components/billing/type' import { useModalContext } from '@/context/modal-context' import { useProviderContext } from '@/context/provider-context' import CustomWebAppBrand from '../custom-web-app-brand' const CustomPage = () => { const { t } = useTranslation() const { plan, enableBilling } = useProviderContext() const { setShowPricingModal } = useModalContext() const showBillingTip = enableBilling && plan.type === Plan.sandbox const showContact = enableBilling && (plan.type === Plan.professional || plan.type === Plan.team) return (
{showBillingTip && (
{t('upgradeTip.title', { ns: 'custom' })}
{t('upgradeTip.des', { ns: 'custom' })}
setShowPricingModal()}>{t('upgradeBtn.encourageShort', { ns: 'billing' })}
)} {showContact && (
{t('customize.prefix', { ns: 'custom' })} {t('customize.contactUs', { ns: 'custom' })} {t('customize.suffix', { ns: 'custom' })}
)}
) } export default CustomPage