DataApiEnableSwitchStates.tsx17 lines · main
| 1 | import { AlertCircle } from 'lucide-react' |
| 2 | import { Alert, AlertTitle, CardContent } from 'ui' |
| 3 | import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader' |
| 4 | |
| 5 | export const DataApiEnableSwitchLoading = () => ( |
| 6 | <CardContent className="space-y-2"> |
| 7 | <ShimmeringLoader /> |
| 8 | <ShimmeringLoader className="w-3/4" delayIndex={1} /> |
| 9 | </CardContent> |
| 10 | ) |
| 11 | |
| 12 | export const DataApiEnableSwitchError = () => ( |
| 13 | <Alert variant="destructive"> |
| 14 | <AlertCircle size={16} /> |
| 15 | <AlertTitle>Failed to retrieve Data API settings</AlertTitle> |
| 16 | </Alert> |
| 17 | ) |