mirror of https://github.com/morpheus65535/bazarr
23 lines
617 B
TypeScript
23 lines
617 B
TypeScript
import { Group } from "@mantine/core";
|
|
import { FunctionComponent, PropsWithChildren } from "react";
|
|
import ToolboxButton, { ToolboxMutateButton } from "./Button";
|
|
import styles from "./Toolbox.module.scss";
|
|
|
|
declare type ToolboxComp = FunctionComponent<PropsWithChildren> & {
|
|
Button: typeof ToolboxButton;
|
|
MutateButton: typeof ToolboxMutateButton;
|
|
};
|
|
|
|
const Toolbox: ToolboxComp = ({ children }) => {
|
|
return (
|
|
<Group p={12} justify="apart" className={styles.group}>
|
|
{children}
|
|
</Group>
|
|
);
|
|
};
|
|
|
|
Toolbox.Button = ToolboxButton;
|
|
Toolbox.MutateButton = ToolboxMutateButton;
|
|
|
|
export default Toolbox;
|