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

@@ -1,13 +1,17 @@
import type * as React from 'react'
type AppEmptyStateProps = {
title: string
description?: string
action?: React.ReactNode
}
export function AppEmptyState({ title, description }: AppEmptyStateProps) {
export function AppEmptyState({ title, description, action }: AppEmptyStateProps) {
return (
<div className="rounded-lg border border-dashed border-border bg-surface px-4 py-8 text-center">
<p className="text-sm font-medium text-foreground">{title}</p>
{description ? <p className="mt-1 text-sm text-muted-foreground">{description}</p> : null}
{action ? <div className="mt-4 flex justify-center">{action}</div> : null}
</div>
)
}