chore: add statistics view

This commit is contained in:
Steven
2024-01-03 08:22:32 +08:00
parent 138b69e36e
commit 914c0620c4
10 changed files with 98 additions and 260 deletions

View File

@ -1,14 +1,15 @@
import MemoCreationHeatMap from "./MemoCreationHeatMap";
import useCurrentUser from "@/hooks/useCurrentUser";
import PersonalStatistics from "./PersonalStatistics";
import SearchBar from "./SearchBar";
import TagList from "./TagList";
const HomeSidebar = () => {
const currentUser = useCurrentUser();
return (
<aside className="relative w-full pr-2 h-full max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start py-4 sm:pt-6">
<div className="px-4 pr-8 mb-4 w-full">
<SearchBar />
</div>
<MemoCreationHeatMap />
<aside className="relative w-full px-4 h-full max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start py-4 sm:pt-6">
<SearchBar />
<PersonalStatistics user={currentUser} />
<TagList />
</aside>
);