1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-10-16 23:17:26 +00:00
festa/components/tools/ToolBar.tsx
2022-06-04 05:13:19 +02:00

16 lines
No EOL
448 B
TypeScript

import {default as classNames} from "classnames"
import { ReactNode } from "react"
type ToolBarProps = {
vertical: "top" | "bottom",
horizontal: "left" | "right",
children: ReactNode,
}
export function ToolBar({vertical, horizontal, children}: ToolBarProps) {
return (
<div className={classNames("toolbar", `toolbar-${vertical}`, `toolbar-${horizontal}`)} aria-role="toolbar">
{children}
</div>
)
}