import dropdownLayoutDriverFactory from '../DropdownLayout/DropdownLayout.driver';
import deprecationTestkitLog from '../utils/deprecationTestkitLog';
const dropdownBaseDriverFactory = ({ element }) => {
    deprecationTestkitLog('dropdownBaseTestkitFactory legacy testkit is deprecated and will be removed in next major release. Please use the DropdownBaseTestkit unidriver testkit instead.');
    return {
        exists: () => !!element,
        element: () => element,
        getDropdownLayoutDriver: () => {
            return dropdownLayoutDriverFactory({
                element: element.querySelector('[data-hook="dropdown-base-dropdownlayout"]'),
            });
        },
    };
};
export default dropdownBaseDriverFactory;
//# sourceMappingURL=DropdownBase.legacy.driver.js.map