import React from 'react'; import { MessageSquare, Mail, Hash, Users, Settings, Plus } from 'lucide-react'; import { CommunicationTab } from '../types'; import { Button, Tabs } from '@krona/ui'; interface CommunicationsHeaderProps { activeTab: CommunicationTab; onTabChange: (tab: CommunicationTab) => void; onAddChannel: () => void; unreadChats: number; unreadEmails: number; unreadChannels: number; } export function CommunicationsHeader({ activeTab, onTabChange, onAddChannel, unreadChats, unreadEmails, unreadChannels, }: CommunicationsHeaderProps) { const tabItems = [ { id: 'messengers', label: 'Мессенджеры', badge: unreadChats > 0 ? unreadChats : undefined, icon: , }, { id: 'email', label: 'Email', badge: unreadEmails > 0 ? unreadEmails : undefined, icon: , }, { id: 'channels', label: 'Каналы', badge: unreadChannels > 0 ? unreadChannels : undefined, icon: , }, { id: 'contacts', label: 'Контакты', icon: , }, { id: 'settings', label: 'Настройки', icon: , }, ]; return (
Больше, чем общение с поддержкой

Коммуникации

Все сообщения, почта и каналы компании в одном пространстве

{/* Mobile compact action button */}
onTabChange(id as CommunicationTab)} className="border-b-0 whitespace-nowrap" />
{/* Desktop / Tablet full button */}
); }