mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-05-01 17:14:55 +00:00
Generated by Spark: getting masses of bad gateway
This commit is contained in:
16
src/components/molecules/LoadingFallback.tsx
Normal file
16
src/components/molecules/LoadingFallback.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { LoadingSpinner } from '@/components/atoms'
|
||||
|
||||
interface LoadingFallbackProps {
|
||||
message?: string
|
||||
}
|
||||
|
||||
export function LoadingFallback({ message = 'Loading...' }: LoadingFallbackProps) {
|
||||
return (
|
||||
<div className="flex items-center justify-center h-full w-full">
|
||||
<div className="flex flex-col items-center gap-3">
|
||||
<LoadingSpinner />
|
||||
<p className="text-sm text-muted-foreground">{message}</p>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -6,6 +6,7 @@ export { EmptyEditorState } from './EmptyEditorState'
|
||||
export { EmptyState } from './EmptyState'
|
||||
export { FileTabs } from './FileTabs'
|
||||
export { LabelWithBadge } from './LabelWithBadge'
|
||||
export { LoadingFallback } from './LoadingFallback'
|
||||
export { LoadingState } from './LoadingState'
|
||||
export { MonacoEditorPanel } from './MonacoEditorPanel'
|
||||
export { NavigationGroupHeader } from './NavigationGroupHeader'
|
||||
|
||||
Reference in New Issue
Block a user