1 import { createClient } from '@supabase/supabase-js';
2 import { single } from './supabase';
3 import { supabase } from '$lib/config/config';
5 import type { Post } from '$lib/data/types';
7 const client = createClient(supabase.url, supabase.key);
9 export const post = (id: string, withTopic = false) =>