"use client"

/**
 * 设置页分区 Error Boundary
 *
 * 薄包装：委托给共享 SectionErrorBoundary，使用 common 命名空间。
 * 保留同名导出以兼容现有 import。
 */

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

interface SettingsSectionErrorBoundaryProps {
  children: ReactNode
}

export function SettingsSectionErrorBoundary({
  children,
}: SettingsSectionErrorBoundaryProps): ReactNode {
  return (
    <SectionErrorBoundary namespace="common">
      {children}
    </SectionErrorBoundary>
  )
}
