From 8b26118e95d3a5c0a7ba779212a97063988e9fb9 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 6 Aug 2025 00:14:11 +0000 Subject: [PATCH] Create Supabase setup status component cgen-753c0a4494e04c308fc84c4ecccbcfee --- client/components/SupabaseStatus.tsx | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 client/components/SupabaseStatus.tsx diff --git a/client/components/SupabaseStatus.tsx b/client/components/SupabaseStatus.tsx new file mode 100644 index 00000000..87a3add7 --- /dev/null +++ b/client/components/SupabaseStatus.tsx @@ -0,0 +1,45 @@ +import React from 'react'; +import { isSupabaseConfigured } from '@/lib/supabase'; +import { Alert, AlertDescription } from '@/components/ui/alert'; +import { Button } from '@/components/ui/button'; +import { Database, ExternalLink, Info } from 'lucide-react'; + +export default function SupabaseStatus() { + if (isSupabaseConfigured) { + return null; // Don't show anything if Supabase is properly configured + } + + return ( +
+ + + +
+ Demo Mode: Supabase is not configured. + Set up your database to enable full functionality. +
+
+ + +
+
+
+
+ ); +}