/**
 * Platform Email Addresses Management Page
 * Allows platform admins to manage platform-wide email addresses hosted on mail.talova.net
 */

import React from 'react';
import { useTranslation } from 'react-i18next';
import { Mail } from 'lucide-react';
import PlatformEmailAddressManager from '../../components/PlatformEmailAddressManager';

const PlatformEmailAddresses: React.FC = () => {
  const { t } = useTranslation();

  return (
    <div className="p-8 max-w-7xl mx-auto">
      {/* Header */}
      <div className="mb-6">
        <h2 className="text-2xl font-bold text-gray-900 dark:text-white flex items-center gap-2">
          <Mail className="w-6 h-6" />
          Platform Email Addresses
        </h2>
        <p className="text-gray-600 dark:text-gray-400 mt-2">
          Manage platform-wide email addresses hosted on mail.talova.net.
          These addresses are used for platform-level support and are automatically synced to the mail server.
        </p>
      </div>

      {/* Email Address Manager */}
      <PlatformEmailAddressManager />
    </div>
  );
};

export default PlatformEmailAddresses;
