import Link from 'next/link'; import { createClient } from '@/lib/supabase/server'; import SavedInterpretation from './SavedInterpretation'; interface PageProps { params: Promise<{ id: string }>; } export default async function SavedResultPage({ params }: PageProps) { const { id } = await params; const supabase = await createClient(); // 인증된 사용자의 쿠키를 사용하여 RLS 통과 const { data: record, error } = await supabase .from('saju_records') .select('*') .eq('id', id) .single(); if (error || !record) { return (
로그인이 필요하거나 삭제된 기록일 수 있습니다.
{saju_data.birthDate.year}년 {saju_data.birthDate.month}월 {saju_data.birthDate.day}일생