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