/* @oracle/oraclejet-preact: undefined */
import { jsxs, jsx } from 'preact/jsx-runtime';
import { T as Text } from './Text-f8d4ff78.js';
import { u as useButtonLabelLayoutTheme } from './useButtonLabelLayoutTheme-a1b95a52.js';

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

export { ButtonLabelLayout as B };
//# sourceMappingURL=ButtonLabelLayout-e9f8cbc0.js.map
