'use client' import { useTranslation } from 'react-i18next' import { SkeletonRectangle } from '@/app/components/base/skeleton' import { DetailTable, DetailTableBody, DetailTableCard, DetailTableCardList, DetailTableCell, DetailTableHead, DetailTableHeader, DetailTableRow, } from '../../components/detail-table' import { API_KEY_DETAIL_TABLE_COLUMN_CLASS_NAMES } from '../../components/detail-table-styles' const DEVELOPER_API_KEY_SKELETON_KEYS = ['primary-key', 'secondary-key'] export function DeveloperApiSkeleton() { return (
) } function ApiUrlSkeleton() { return (
) } function ApiKeyTableSkeleton() { return ( <> {DEVELOPER_API_KEY_SKELETON_KEYS.map(key => (
))}
{DEVELOPER_API_KEY_SKELETON_KEYS.map(key => ( ))}
) } function ApiKeyTableHeaderSkeleton() { const { t } = useTranslation('deployments') return ( {t('access.api.table.name')} {t('access.api.table.environment')} {t('access.api.table.key')} {t('access.api.table.action')} ) } function ApiKeyDesktopRowSkeleton() { return (
) }