'use client'; import { ShimmerText } from '@/components/ui/typography/ShimmerText'; import React from 'react'; import { Text } from '@/components/ui/typography/Text'; export const PreparingYourRequestLoader: React.FC<{ className?: string; text?: string; error?: string | null; useShimmer?: boolean; }> = ({ className = '', text = 'Processing your request...', error, useShimmer = true }) => { return (
{error || useShimmer === false ? ( {error || text} ) : ( )}
); }; export const NoChartData: React.FC<{ noDataText?: string; className?: string; }> = ({ className = '', noDataText = 'The query ran successfully but didn’t return any data' }) => { return (
{noDataText}
); };