1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-23 15:14:23 +00:00
festa/components/tools/ToolBar.tsx

16 lines
456 B
TypeScript
Raw Normal View History

2022-06-08 02:52:41 +00:00
import { default as classNames } from "classnames"
2022-06-04 03:13:19 +00:00
import { ReactNode } from "react"
type ToolBarProps = {
vertical: "top" | "bottom" | "vadapt",
2022-06-04 03:13:19 +00:00
horizontal: "left" | "right",
children: ReactNode,
}
export function ToolBar({vertical, horizontal, children}: ToolBarProps) {
return (
2022-06-06 00:28:29 +00:00
<div className={classNames("toolbar", `toolbar-${vertical}`, `toolbar-${horizontal}`)} role="toolbar">
2022-06-04 03:13:19 +00:00
{children}
</div>
)
}