buster/apps/web/src/controllers/MetricController/MetricViewChart/MetricDataTruncatedWarning.tsx

22 lines
648 B
TypeScript
Raw Normal View History

import React from 'react';
import { Text } from '@/components/ui/typography';
import { cn } from '@/lib/classMerge';
interface MetricDataTruncatedWarningProps {
className?: string;
}
2025-07-15 01:36:03 +08:00
export const MetricDataTruncatedWarning: React.FC<MetricDataTruncatedWarningProps> = ({
className
}) => {
return (
2025-07-15 01:36:03 +08:00
<div
className={cn('bg-background flex flex-col space-y-1 rounded border p-4 shadow', className)}>
<Text className="font-medium">This request returned more than 5,000 records</Text>
<Text size="xs" variant="secondary">
If you need more than that, please contact your data admin.
</Text>
</div>
);
2025-07-15 01:36:03 +08:00
};