From 6014af2690233d3472858976cd0d078f35d30c29 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Tue, 12 May 2026 01:01:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E6=B7=BB=E5=8A=A0=E7=A9=BA?= =?UTF-8?q?=E6=80=81=E5=92=8C=E9=AA=A8=E6=9E=B6=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui.tsx | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/components/ui.tsx b/src/components/ui.tsx index 52d4990..d2c6ad6 100644 --- a/src/components/ui.tsx +++ b/src/components/ui.tsx @@ -152,3 +152,30 @@ export function SectionTitle({ icon, title, description }: { icon?: ReactNode; t ) } + +export function Skeleton({ className, ...props }: ComponentPropsWithoutRef<'div'>) { + return
+} + +export function EmptyState({ + icon, + title, + description, + action, + className, +}: { + icon?: ReactNode + title: string + description?: string + action?: ReactNode + className?: string +}) { + return ( +
+ {icon &&
{icon}
} +

{title}

+ {description &&

{description}

} + {action &&
{action}
} +
+ ) +}