export function NotFound()

in src/components/ui/not-found.tsx [30:58]


export function NotFound({ onRefresh, content }: CustomNoDataChartProps) {
  return (
    <Card className="w-full h-full flex items-center justify-center bg-background">
      <CardContent className="flex flex-col items-center py-10">
        <div className="relative mb-6">
          <AlertCircle className="h-20 w-20 text-muted-foreground" />
          <RefreshCcw className="h-8 w-8 text-primary absolute -bottom-2 -right-2" />
        </div>
        <h2 className="text-2xl font-semibold mb-2 text-foreground">
          No Chart Data Available
        </h2>
        {content ? (
          <p className="text-muted-foreground text-center mb-6 max-w-sm">
            {content}
          </p>
        ) : (
          <p className="text-muted-foreground text-center mb-6 max-w-sm">
            We couldn't load the chart data at this time. This could be due to a
            connection issue or a temporary glitch.
          </p>
        )}
        <Button onClick={onRefresh} className="flex items-center gap-2">
          <RefreshCcw className="h-4 w-4" />
          Refresh Data
        </Button>
      </CardContent>
    </Card>
  );
}