import { useStorage } from '@libs/storage/provider'; import { CancelIcon } from '@shared/icons'; import { User } from '@shared/user'; import { useWidgets } from '@stores/widgets'; export function TitleBar({ id, title }: { id?: string; title?: string }) { const { db } = useStorage(); const remove = useWidgets((state) => state.removeWidget); return (
{id === '9999' ? (
{db.account.circles ?.slice(0, 10) .map((item) => )} {db.account.circles?.length > 10 ? (
+{db.account.circles?.length - 10}
) : null}
) : (

{title}

)} {id !== '9999' ? ( ) : (
)}
); }