feat: display profile picture

This commit is contained in:
Henry
2025-01-22 13:35:44 +00:00
parent ef8f42a460
commit 0bd23d24ac
12 changed files with 130 additions and 74 deletions

View File

@@ -0,0 +1,7 @@
import createClient from "~/utils/supabase/client";
export const getPublicUrl = (fileName: string) => {
const supabase = createClient();
return supabase.storage.from("avatars").getPublicUrl(fileName).data.publicUrl;
};