This commit is contained in:
Mckay Wrigley
2023-03-15 04:24:09 -06:00
parent a6503fb498
commit ce331a1bbd
13 changed files with 212 additions and 84 deletions
+19
View File
@@ -0,0 +1,19 @@
import { FC } from "react";
interface Props {
text: string;
icon: JSX.Element;
onClick: () => void;
}
export const SidebarButton: FC<Props> = ({ text, icon, onClick }) => {
return (
<div
className="flex hover:bg-[#343541] py-2 px-4 rounded-md cursor-pointer w-[200px] items-center"
onClick={onClick}
>
<div className="mr-3">{icon}</div>
<div>{text}</div>
</div>
);
};