/* @oracle/oraclejet-preact: undefined */
'use strict';

var jsxRuntime = require('preact/jsx-runtime');
var Text = require('./Text-15923d58.js');
var useButtonLabelLayoutTheme = require('./useButtonLabelLayoutTheme-b7b3bdb6.js');

function ButtonLabelLayout({ size = 'md', display = 'all', styling = 'default', ...props }) {
    const { startIconClasses, labelClasses, suffixClasses, endIconClasses, containerClasses, isShowIcons, isShowText } = useButtonLabelLayoutTheme.useButtonLabelLayoutTheme({ display, size, styling, ...props });
    return (jsxRuntime.jsxs("span", { class: containerClasses, children: [isShowIcons && props.startIcon && jsxRuntime.jsx("span", { class: startIconClasses, children: props.startIcon }), isShowText && props.children && jsxRuntime.jsxs("span", { class: labelClasses, children: [" ", props.children, " "] }), isShowText && props.suffix && (jsxRuntime.jsx("span", { class: suffixClasses, children: jsxRuntime.jsx(Text.Text, { truncation: 'ellipsis', weight: 'inherit', children: props.suffix }) })), isShowIcons && props.endIcon && jsxRuntime.jsx("span", { class: endIconClasses, children: props.endIcon })] }));
}
ButtonLabelLayout.displayName = 'ButtonLabelLayout';

exports.ButtonLabelLayout = ButtonLabelLayout;
//# sourceMappingURL=ButtonLabelLayout-b421d34a.js.map
