consul/ui/packages/consul-ui/app/components/search-bar/pageobject.js

8 lines
134 B
JavaScript

export default (search, secondary = () => {}) => scope => {
return {
scope: scope,
...search(),
...secondary(),
};
};