import "./index.css"; import React, { useState } from "react"; /** * Renders a menu button with an icon and title. * * @component * @param {React.ElementType} icon - The icon component to be rendered. * @param {string} title - The title of the menu button. * @returns {React.ReactElement} The rendered menu button component. */ const DashboardMenuButton = (icon, title) => { const [isActive, setIsActive] = useState(false); const handleClick = () => { setIsActive(!isActive); }; return (
Monitors
{title}
); }; export default DashboardMenuButton;