import { useStorage } from '@libs/storage/provider';
import { CancelIcon } from '@shared/icons';
import { User } from '@shared/user';
import { useWidget } from '@utils/hooks/useWidget';
export function TitleBar({
id,
title,
isLive,
}: {
id?: string;
title?: string;
isLive?: boolean;
}) {
const { db } = useStorage();
const { removeWidget } = useWidget();
return (
{id === '9999' ? (
{db.account.contacts
?.slice(0, 8)
.map((item) =>
)}
{db.account.contacts?.length > 8 ? (
+{db.account.contacts?.length - 8}
) : null}
) : (
{title}
)}
{id !== '9999' && id !== '9998' ? (
) : null}
);
}