import { FC, useCallback } from 'react'; import { BackHeader } from 'components/back-header'; import { Fab } from 'components/fab'; import { Container, Row, StyleSystemThemedProps } from 'components/layout'; import { User } from 'components/room/header/user'; import { Text, Button, Visible } from 'components'; import { useResponsiveLayout, useRouting } from 'hooks'; import { MicOff, Screen, VideoCameraOff, PhoneCall, SettingsFill, CloseThick, ChevronLeft, } from 'icons'; import { Chip } from 'components/chip'; import { Divider } from 'components/divider'; import { SideBarOpen } from 'icons/SideBarOpen'; import { Action } from '../action'; export const TopBar: FC = ({ isPopUp, ...props }) => { const { isMobile, isTabletSM } = useResponsiveLayout(); const { navigateBack } = useRouting(); const unRead = 4; const isSmall = isMobile || isTabletSM || isPopUp; const goBack = useCallback(() => { navigateBack(); }, [navigateBack]); const borderRadius = isPopUp ? 10 : 0; const actionBackground = isPopUp ? 'base-01' : 'base'; const isUnRead = !!unRead && unRead > 0; return (