/**
 * WorkspaceSettingsPage -- Settings for the AI Workspace.
 *
 * Voice settings are now in user-level settings (/settings -> "Stimme & Sprache").
 * Neutralization audit has moved to the Compliance & AI-Audit page.
 */

import React from 'react';
import { useInstanceId } from '../../../hooks/useCurrentInstance';
import { WorkspaceGeneralSettings } from './WorkspaceGeneralSettings';
import { useLanguage } from '../../../providers/language/LanguageContext';

export const WorkspaceSettingsPage: React.FC = () => {
  const { t } = useLanguage();
  const instanceId = useInstanceId();

  if (!instanceId) {
    return (
      <div style={{ padding: 32, textAlign: 'center', color: '#999' }}>
        {t('Keine Instanz ausgewählt')}
      </div>
    );
  }

  return (
    <div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
      <div style={{ flex: 1, overflow: 'auto', padding: '16px 24px' }}>
        <WorkspaceGeneralSettings instanceId={instanceId} />
      </div>
    </div>
  );
};

export default WorkspaceSettingsPage;
