hiento09 86f0ffc7d1
Chore/disable submodule (#56)
* Chore disable git submodule for web-client and app-backend

* Chore add newest source code of app-backend and web-client

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
2023-09-05 16:29:07 +07:00

24 lines
657 B
TypeScript

import { observer } from "mobx-react-lite";
import { useStore } from "@/_models/RootStore";
export const UserToolbar: React.FC = observer(() => {
const { historyStore } = useStore();
const conversation = historyStore.getActiveConversation();
const avatarUrl = conversation?.product.avatarUrl ?? "";
const title = conversation?.product.name ?? "";
return (
<div className="flex items-center gap-3 p-1">
<img
className="rounded-full aspect-square w-8 h-8"
src={avatarUrl}
alt=""
/>
<span className="flex gap-[2px] leading-6 text-base font-semibold">
{title}
</span>
</div>
);
});