import { t } from '@/lib/i18n'
import { RelayManagerContent } from './RelayManagerContent'
import type { RelayManagerViewProps } from './types'

export function RelayManagerView(params: RelayManagerViewProps): React.ReactElement {
  if (params.loading) {
    return (
      <div className="text-center py-8 text-neon-cyan">
        <div>{t('settings.relay.loading')}</div>
      </div>
    )
  }
  return <RelayManagerContent {...params} />
}
