mirror of
https://github.com/stashapp/stash.git
synced 2025-12-15 21:03:22 +01:00
* Remove unused imports * Fix === warnings * Remove unnecessary escape character * Add alt text for images * Add missing alt text * Remove unused variable * Change scrubber buttons from anchors * Change folder select anchor to button * Replace anchors with buttons * Add missing useEffect dependencies * Refactor filter debounce * Throw error object * Update dependencies * Fix === warning
31 lines
637 B
TypeScript
31 lines
637 B
TypeScript
import {
|
|
MenuItem,
|
|
Menu,
|
|
} from "@blueprintjs/core";
|
|
import React, { FunctionComponent } from "react";
|
|
import { IMenuItem } from "../App";
|
|
|
|
interface IProps {
|
|
className: string
|
|
menuItems: IMenuItem[]
|
|
}
|
|
|
|
export const Sidebar: FunctionComponent<IProps> = (props) => {
|
|
return (
|
|
<>
|
|
<div className={"sidebar" + props.className}>
|
|
<Menu large={true}>
|
|
{props.menuItems.map((i) => {
|
|
return (
|
|
<MenuItem
|
|
icon={i.icon}
|
|
text={i.text}
|
|
href={i.href}
|
|
/>
|
|
)
|
|
})}
|
|
</Menu>
|
|
</div>
|
|
</>
|
|
);
|
|
};
|