DataApiEnableSwitchStates.tsx 540 B

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