Cleaned up components and their props

This commit is contained in:
2025-07-07 13:44:28 -05:00
parent edd0a9ccba
commit 2fbb259e62
20 changed files with 258 additions and 193 deletions

View File

@@ -5,6 +5,16 @@ export type SupabaseClient = SBClient<Database>;
export type { User } from '@supabase/supabase-js';
export type Result<T> = {
data: T | null;
error: { message: string } | null;
};
export type AsyncReturnType<T extends (...args: any) => Promise<any>> =
T extends (...args: any) => Promise<infer R> ? R : never;
export type ExtractResultData<T> = T extends Result<infer U> ? U : never;
// Table row types
export type Profile = Database['public']['Tables']['profiles']['Row'];
export type Status = Database['public']['Tables']['statuses']['Row'];