memos/web/src/components/HomeSidebar.tsx
2024-01-27 17:28:06 +08:00

28 lines
683 B
TypeScript

import classNames from "classnames";
import useCurrentUser from "@/hooks/useCurrentUser";
import PersonalStatistics from "./PersonalStatistics";
import SearchBar from "./SearchBar";
import TagList from "./TagList";
interface Props {
className?: string;
}
const HomeSidebar = (props: Props) => {
const currentUser = useCurrentUser();
return (
<aside
className={classNames(
"relative w-full h-auto max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start",
props.className,
)}
>
<SearchBar />
<PersonalStatistics user={currentUser} />
<TagList />
</aside>
);
};
export default HomeSidebar;