mirror of
https://github.com/usememos/memos.git
synced 2025-11-11 01:41:58 +08:00
28 lines
699 B
TypeScript
28 lines
699 B
TypeScript
import clsx from "clsx";
|
|
import SearchBar from "@/components/SearchBar";
|
|
import UserStatisticsView from "@/components/UserStatisticsView";
|
|
import useCurrentUser from "@/hooks/useCurrentUser";
|
|
import TagsSection from "./TagsSection";
|
|
|
|
interface Props {
|
|
className?: string;
|
|
}
|
|
|
|
const HomeSidebar = (props: Props) => {
|
|
const currentUser = useCurrentUser();
|
|
|
|
return (
|
|
<aside
|
|
className={clsx(
|
|
"relative w-full h-auto max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start",
|
|
props.className,
|
|
)}
|
|
>
|
|
<SearchBar />
|
|
<UserStatisticsView user={currentUser} />
|
|
<TagsSection />
|
|
</aside>
|
|
);
|
|
};
|
|
|
|
export default HomeSidebar;
|