баги
This commit is contained in:
16
frontend/react/shared/ui/SidebarToggle.jsx
Normal file
16
frontend/react/shared/ui/SidebarToggle.jsx
Normal file
@@ -0,0 +1,16 @@
|
||||
export function SidebarToggle({ open, onClick }) {
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-icon-md btn-secondary menu-toggle"
|
||||
aria-label={open ? 'Закрыть меню' : 'Открыть меню'}
|
||||
aria-expanded={open}
|
||||
aria-controls="app-sidebar"
|
||||
onClick={onClick}
|
||||
>
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" aria-hidden="true">
|
||||
<path d="M3 6h18M3 12h18M3 18h18" />
|
||||
</svg>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user