feat: add enterprise app ui layer

This commit is contained in:
hailin
2026-07-01 11:40:32 +08:00
parent 3b5b614534
commit 52bb354a1b
10 changed files with 240 additions and 11 deletions

View File

@@ -0,0 +1,25 @@
import type * as React from 'react'
import { Card, CardContent, CardHeader } from '@/components/ui/card'
type AppSectionProps = {
title: string
description?: string
action?: React.ReactNode
children: React.ReactNode
}
export function AppSection({ title, description, action, children }: AppSectionProps) {
return (
<Card>
<CardHeader className="flex flex-row items-start justify-between gap-3">
<div>
<h2 className="text-sm font-semibold text-foreground">{title}</h2>
{description ? <p className="mt-1 text-sm text-muted-foreground">{description}</p> : null}
</div>
{action}
</CardHeader>
<CardContent>{children}</CardContent>
</Card>
)
}