import React from 'react';
import { observer } from 'mobx-react-lite';
import { CollectionSearch } from '../CollectionSearch';
import { Box } from '@wix/design-system';
function _PickerSubheader(props) {
    const { state, subtitle, search = true, spacing = 30, ...rest } = props;
    return (React.createElement(Box, { dataHook: "picker-subheader", display: "block", padding: search ? `30px ${spacing}px 18px` : `0 ${spacing}px 18px`, ...rest },
        subtitle && (React.createElement(Box, { display: "block", marginTop: search ? undefined : `30px`, marginBottom: search ? `18px` : undefined }, subtitle)),
        React.createElement(CollectionSearch, { minWidthPixels: "100%" })));
}
export const PickerSubheader = observer(_PickerSubheader);
//# sourceMappingURL=PickerSubheader.js.map