2025-07-13 22:44:48 +08:00
|
|
|
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
|
2025-07-13 22:44:48 +08:00
|
|
|
}) => {
|
|
|
|
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">
|
2025-07-13 22:44:48 +08:00
|
|
|
If you need more than that, please contact your data admin.
|
|
|
|
</Text>
|
|
|
|
</div>
|
|
|
|
);
|
2025-07-15 01:36:03 +08:00
|
|
|
};
|