1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00
festa/components/generic/toolbar/tool.tsx

24 lines
530 B
TypeScript
Raw Normal View History

2022-06-11 03:08:49 +00:00
import { default as classNames } from "classnames"
import { ComponentPropsWithoutRef, memo } from "react"
import style from "./tool.module.css"
export type ToolProps = ComponentPropsWithoutRef<"button">
/**
* A single tool button displayed in the toolbar.
*/
export const Tool = memo((props: ToolProps) => {
return (
<button
{...props}
className={classNames(
style.toolbarTool,
props.className,
)}
/>
)
})
2022-07-16 14:12:29 +00:00
Tool.displayName = "Tool"