import CloseOutlined from "@mui/icons-material/CloseOutlined"; import Drawer from "@mui/material/Drawer"; import { IconButton } from "@/shared/ui/IconButton.jsx"; export function SideDrawer({ actions, as: Component = "section", children, className = "", contentClassName = "", drawerProps = {}, onClose, open, title, width = "default", ...props }) { const drawerClassName = ["side-drawer", width === "wide" ? "side-drawer--wide" : "", className] .filter(Boolean) .join(" "); return (
{title ?

{title}

: } {onClose ? ( ) : null}
{children}
{actions ?
{actions}
: null}
); }