@guestbell/react-page-plugins
Version:
Plugins we use in GuestBell for working with amazing react-page package
32 lines • 1.42 kB
JavaScript
import * as React from 'react';
import { lazyLoad } from '@react-page/editor';
import { AlignmentButton } from './AlignmentButton';
import { AlignmentTypes } from './alignmentTypes';
var AlignLeftIcon = lazyLoad(function () {
return import('@mui/icons-material/FormatAlignLeft');
});
var AlignCenterIcon = lazyLoad(function () {
return import('@mui/icons-material/FormatAlignCenter');
});
var AlignRightIcon = lazyLoad(function () {
return import('@mui/icons-material/FormatAlignRight');
});
var AlignJustifyIcon = lazyLoad(function () {
return import('@mui/icons-material/FormatAlignJustify');
});
export var AlignmentButtons = function AlignmentButtons() {
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AlignmentButton, {
alignment: AlignmentTypes.Left,
icon: /*#__PURE__*/React.createElement(AlignLeftIcon, null)
}), /*#__PURE__*/React.createElement(AlignmentButton, {
alignment: AlignmentTypes.Center,
icon: /*#__PURE__*/React.createElement(AlignCenterIcon, null)
}), /*#__PURE__*/React.createElement(AlignmentButton, {
alignment: AlignmentTypes.Right,
icon: /*#__PURE__*/React.createElement(AlignRightIcon, null)
}), /*#__PURE__*/React.createElement(AlignmentButton, {
alignment: AlignmentTypes.Justify,
icon: /*#__PURE__*/React.createElement(AlignJustifyIcon, null)
}));
};
//# sourceMappingURL=AlignmentButtons.js.map