import { Button } from '@wix/design-system';
import React from 'react';
import { TextWidthLoader } from '../TextWidthLoader';
export function PickerModalOpenButton(props) {
    const { state, onMouseEnter, onClick, children, ...rest } = props;
    const { openModalOrCTA, hover, showButtonLoadingIndication } = state;
    return (React.createElement(Button, { ...rest, onMouseEnter: (...args) => {
            hover();
            onMouseEnter?.(...args);
        }, onClick: (event) => {
            openModalOrCTA();
            onClick?.(event);
        } }, showButtonLoadingIndication ? (React.createElement(TextWidthLoader, { size: "tiny", text: children })) : (children)));
}
//# sourceMappingURL=PickerModalOpenButton.js.map