ABSTRACT sidebar buttons

This commit is contained in:
2025-05-30 14:58:29 +02:00
parent 1802659f43
commit e65bbf8e75
6 changed files with 55 additions and 32 deletions

View File

@@ -0,0 +1,23 @@
import MenuButton from "./MenuButton.tsx";
import { Link } from "react-router-dom";
type props = {
url: string;
logo: React.ReactNode;
label: String;
}
const SidebarButton = ({url, logo, label}: props) => {
return (
<Link
className={"w-full"}
to={url}
>
<MenuButton className={"flex items-center gap-2 w-full"}>
{logo}{label}
</MenuButton>
</Link>
)
}
export default SidebarButton;