// Copyright 2026 Arctel.net // SPDX-License-Identifier: Apache-2.0 'use client'; import * as React from 'react'; import { useTranslations } from 'next-intl'; import { Code } from 'lucide-react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from '@/components/ui/card'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; // 引入模块化拆分后的 Tab 子组件 import { DashboardTab } from './tabs/dashboard-tab'; import { TableTab } from './tabs/table-tab'; import { ControlsTab } from './tabs/controls-tab'; export default function HeaderDemoPage() { const t = useTranslations('admin.demo'); const [activeTab, setActiveTab] = React.useState('dashboard'); return (
flex items-center gap-2
{' '}
{t('rules.containerAlignment.description')}{' '}
py-6 px-1
{' '}
(或{' '}
py-6
) {t('rules.containerAlignment.description2')}
size-5 text-primary
{' '}
{t('rules.iconPresentation.description')}
{'h1 className="text-2xl font-semibold tracking-tight"'}
{t('rules.textStyle.description')}{' '}
font-bold
{t('rules.textStyle.description2')}
tabs/events-tab.tsx
{' '}
{t('rules.tabsModular.description')}{' '}
components/
{' '}
{t('rules.tabsModular.description2')}
app/(main)/admin/database/components/
{t('rules.complexityDriven.description2')}{' '}
components/common/
{t('rules.complexityDriven.description3')}{' '}
/admin/database
) 的{' '}
table-browser.tsx
、
cache-manager.tsx
{' '}
与{' '}
sql-console.tsx
。