'use client';
import React from 'react';
import SidebarTabs from '@/components/SidebarTabs';
import EmailSender from '@/components/Admin/EmailSender';
import InstantMessaging from '@/components/Admin/InstantMessaging';
import logger from '@/utils/logger';

export default function MessageriePage({ csrfToken }) {
  const tabs = [
    {
      id: 'email',
      label: 'Envoyer un Mail',
      content: <EmailSender csrfToken={csrfToken} />,
    },
    {
      id: 'instant',
      label: 'Messagerie Instantanée',
      content: <InstantMessaging csrfToken={csrfToken} />,
    },
  ];

  return (
    <div className="h-full flex flex-col p-0 m-0">
      <SidebarTabs tabs={tabs} />
    </div>
  );
}
