"use client"; import dynamic from "next/dynamic"; interface ResponseTimeDistributionProps { data: number[]; average: number; targetResponseTime?: number; } const ChartSkeleton = () => (
{[...Array(8)].map((_, i) => (
))}
); const ResponseTimeDistributionChart = dynamic( () => import("./ResponseTimeDistributionChart"), { ssr: false, loading: () => , } ); export default function ResponseTimeDistribution( props: ResponseTimeDistributionProps ) { if (!props.data || !props.data.length) { return (
No response time data available
); } return ; }