import { Alert, Badge, Card, Spinner, } from '@cameleer/design-system'; import { useTenantSettings } from '../../api/tenant-hooks'; import { tierColor } from '../../utils/tier'; import styles from '../../styles/platform.module.css'; function statusColor(status: string): 'success' | 'error' | 'warning' | 'auto' { switch (status?.toUpperCase()) { case 'ACTIVE': return 'success'; case 'SUSPENDED': return 'warning'; case 'PROVISIONING': return 'auto'; case 'ERROR': return 'error'; default: return 'auto'; } } export function SettingsPage() { const { data, isLoading, isError } = useTenantSettings(); if (isLoading) { return (
); } if (isError || !data) { return (
Could not fetch settings. Please refresh.
); } return (

Settings

Name {data.name}
Slug {data.slug}
Tier
Status
Server Endpoint {data.serverEndpoint ?? '—'}
Created {new Date(data.createdAt).toLocaleDateString()}

To change your tier or other billing-related settings, please contact support.

); }