Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Add Skeleton component for loading state representation in AIChat

Salman-Ahamed8c5949c01b8c
diff --git a/packages/app/src/react/features/ai-chat/components/skeleton.tsx b/packages/app/src/react/features/ai-chat/components/skeleton.tsx
new file mode 100644
index 00000000..2e4a3229
--- /dev/null
+++ b/packages/app/src/react/features/ai-chat/components/skeleton.tsx
@@ -0,0 +1,11 @@
+import { cn } from '@src/react/shared/utils/general';
+import { FC } from 'react';
+
+export const Skeleton: FC<{ className?: string }> = ({ className }) => (
+ <div
+ className={cn(
+ 'bg-gradient-to-r from-slate-200 via-slate-300 to-slate-200 animate-pulse',
+ className,
+ )}
+ />
+);