mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
16 lines
No EOL
454 B
TypeScript
16 lines
No EOL
454 B
TypeScript
import {default as classNames} from "classnames"
|
|
import { ReactNode } from "react"
|
|
|
|
type ToolBarProps = {
|
|
vertical: "top" | "bottom" | "vadapt",
|
|
horizontal: "left" | "right",
|
|
children: ReactNode,
|
|
}
|
|
|
|
export function ToolBar({vertical, horizontal, children}: ToolBarProps) {
|
|
return (
|
|
<div className={classNames("toolbar", `toolbar-${vertical}`, `toolbar-${horizontal}`)} role="toolbar">
|
|
{children}
|
|
</div>
|
|
)
|
|
} |