"use client" import * as React from "react" import { Dialog, DialogContent, DialogHeader, DialogTitle, } from "@/components/ui/dialog" import type { Notice } from "@/db/schema/notice" type NoticeWithAuthor = Notice & { authorName: string | null authorEmail: string | null } interface NoticeViewDialogProps { open: boolean onOpenChange: (open: boolean) => void notice: NoticeWithAuthor | null } export function NoticeViewDialog({ open, onOpenChange, notice, }: NoticeViewDialogProps) { if (!notice) return null return (
제목: {notice.title}
) }