• Error boundary for the statistics section with specialized recovery actions. Wraps BaseErrorBoundary with statistics-specific configuration.

    Parameters

    Returns ReactElement

    export function StatisticsErrorBoundary({
    children,
    onRefresh,
    onClearFilters,
    }: StatisticsErrorBoundaryProps): React.ReactElement {
    const recoveryActions: RecoveryAction[] = [
    {
    label: "Refresh Data",
    Icon: RefreshCw,
    handler: onRefresh ?? (() => {}),
    variant: "default",
    },
    {
    label: "Clear Filters",
    Icon: BarChart3,
    handler: onClearFilters ?? (() => {}),
    variant: "outline",
    },
    ];

    return (
    <BaseErrorBoundary
    title="Statistics Error"
    description="An error occurred while loading statistics"
    HeaderIcon={BarChart3}
    recoveryActions={recoveryActions}
    section="statistics"
    >
    {children}
    </BaseErrorBoundary>
    );
    }