import { SupportCategories } from '@supabase/shared-types/out/constants' import { LOCAL_STORAGE_KEYS } from 'common' import { ExternalLink } from 'lucide-react' import { Card, CardContent, Separator, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from 'ui' import { SupportLink } from '../Support/SupportLink' import { ApiKeyPill } from './ApiKeyPill' import { CreateNewAPIKeysButton } from './CreateNewAPIKeysButton' import { FeatureBanner } from '@/components/ui/FeatureBanner' import { InlineLink, InlineLinkClassName } from '@/components/ui/InlineLink' import { APIKeysData } from '@/data/api-keys/api-keys-query' // Mock API Keys for demo const mockApiKeys = [ { id: 'mock-id-2', type: 'publishable', api_key: 'sb_publishable_ltaNA7nnVozoSCOcZIjg', name: 'web', }, { id: 'mock-id-3', type: 'publishable', api_key: 'sb_publishable_YpotEpinEWsC2dI7FIKI', name: 'mobile', }, { id: 'mock-id-1', type: 'secret', api_key: 'sb_secret_8I4Se•••••••••••••', name: 'backend_api', }, ] as Extract[] /** * Reusable table illustration component */ const ApiKeysTableIllustration = () => { return ( Name API Key {mockApiKeys.map((apiKey) => ( {apiKey.name}
))}
) } /** * Reusable illustration with gradient overlay component */ const ApiKeysIllustrationWithOverlay = () => { return ( <> {/* Gradient overlay - horizontal on desktop, vertical on mobile */}
) } export const ApiKeysCreateCallout = () => { return ( } bgAlt>

Create API keys

Use keys to authenticate requests to your app

) } export const ApiKeysFeedbackBanner = () => { return (

Your new API keys are here

We've updated our API keys to better support your application needs.{' '} Join the discussion on GitHub

Having trouble with the new API keys?{' '} Contact support

) }