@shopware-ag/meteor-component-library
Version:
The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).
18 lines (17 loc) • 495 B
JavaScript
import { provide, inject } from "vue";
const defaultFutureFlags = {
removeCardWidth: false,
removeDefaultMargin: false
};
const futureFlagsInjectionKey = Symbol("mt-future-flags");
function provideFutureFlags(flags) {
provide(futureFlagsInjectionKey, flags ?? defaultFutureFlags);
}
function useFutureFlags() {
return inject(futureFlagsInjectionKey, defaultFutureFlags);
}
export {
provideFutureFlags as p,
useFutureFlags as u
};
//# sourceMappingURL=useFutureFlags-2be3e179.mjs.map