refactor: generate and use Supabase TypeScript types

Co-authored-by: Moheeb Zara <[email protected]>
This commit is contained in:
v0
2026-03-11 08:12:39 +00:00
co-authored by Moheeb Zara
parent c34d5d9529
commit 2e136b5f55
18 changed files with 1135 additions and 342 deletions
+3 -18
View File
@@ -3,25 +3,10 @@
import { useState } from 'react'
import { X, Check, Copy, Eye, EyeOff, RotateCcw } from 'lucide-react'
import { updateSpaceSettings, saveIntegration, disconnectIntegration, rotateWebhookSecret } from '@/lib/actions'
import type { Tables } from '@/types/database'
interface Space {
id: string
name: string
slug: string
city?: string
invite_code?: string
require_approval?: boolean
public_member_directory?: boolean
webhook_secret?: string
}
interface Integration {
id: string
platform: string
name?: string
is_connected: boolean
config?: Record<string, string>
}
type Space = Tables<'spaces'>
type Integration = Tables<'integrations'>
interface Props {
space: Space