import { useSyncProps } from '@wix/bex-core';
import { observable } from 'mobx';
import { useState } from 'react';
export function useCollectionToolbarSyncedProps(props) {
    const { state, left, viewsToolbarItem } = props;
    const syncedProps = useSyncProps({
        useResponsiveLayout: !!viewsToolbarItem || !!left,
    }, {
        useResponsiveLayout: observable.ref,
    });
    useState(() => {
        state._syncedProps = syncedProps;
    });
    return syncedProps;
}
//# sourceMappingURL=useCollectionToolbarSyncedProps.js.map