2024-08-01 01:47:54 +08:00
|
|
|
import React from 'react';
|
2024-08-22 21:51:00 +08:00
|
|
|
import PluginHelperButtonComponent from './component';
|
2024-08-01 01:47:54 +08:00
|
|
|
|
|
|
|
interface PluginButtonContainerProps {
|
|
|
|
dark: boolean;
|
|
|
|
bottom: boolean;
|
|
|
|
right: boolean;
|
|
|
|
icon: string;
|
|
|
|
label: string;
|
2024-08-22 21:51:00 +08:00
|
|
|
onClick: (args:{ browserClickEvent: React.MouseEvent<HTMLElement> }) => void;
|
2024-08-01 01:47:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
const PluginButtonContainer = (props: PluginButtonContainerProps) => {
|
|
|
|
const {
|
|
|
|
dark,
|
|
|
|
bottom,
|
|
|
|
right,
|
|
|
|
icon,
|
|
|
|
label,
|
|
|
|
onClick,
|
|
|
|
} = props;
|
|
|
|
return (
|
2024-08-22 21:51:00 +08:00
|
|
|
<PluginHelperButtonComponent
|
2024-08-01 01:47:54 +08:00
|
|
|
dark={dark}
|
|
|
|
bottom={bottom}
|
|
|
|
right={right}
|
|
|
|
icon={icon}
|
|
|
|
label={label}
|
|
|
|
onClick={onClick}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default PluginButtonContainer;
|