"use client"; import { useEffect } from "react"; import { Button, Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader, DialogTitle, } from "@common/components"; import { statisticsApi } from "@/entities/statistics/api/statistics-service"; export interface LogHistoryDetailDialogProps { open: boolean; onOpenChange: (open: boolean) => void; row: Record | null; } export function LogHistoryDetailDialog({ open, onOpenChange, row, }: LogHistoryDetailDialogProps) { useEffect(() => { if (!open || !row) return; const sn = row.statsLogSn; void (async () => { const response = await statisticsApi.getLogDetail( sn !== undefined && sn !== null ? String(sn) : "", ); console.log(response.data); })(); }, [open, row]); return ( ); }