mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
23 lines
504 B
TypeScript
23 lines
504 B
TypeScript
|
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,
|
||
|
)}
|
||
|
/>
|
||
|
)
|
||
|
})
|