"use client"

/**
 * 审计模块独立数据区块错误边界。
 *
 * 薄包装：委托给共享 SectionErrorBoundary，使用 common 命名空间。
 * 保留同名导出以兼容现有 import。
 */

import type { ReactNode } from "react"
import { SectionErrorBoundary } from "@/shared/components/section-error-boundary"

interface AuditErrorBoundaryProps {
  children: ReactNode
}

export function AuditErrorBoundary({ children }: AuditErrorBoundaryProps): ReactNode {
  return (
    <SectionErrorBoundary namespace="audit">
      {children}
    </SectionErrorBoundary>
  )
}
