1 | import { componentFactory, $internalHooks } from './component';
|
2 | export { createDecorator, mixins } from './util';
|
3 | function Component(options) {
|
4 | if (typeof options === 'function') {
|
5 | return componentFactory(options);
|
6 | }
|
7 | return function (Component) {
|
8 | return componentFactory(Component, options);
|
9 | };
|
10 | }
|
11 | Component.registerHooks = function registerHooks(keys) {
|
12 | $internalHooks.push(...keys);
|
13 | };
|
14 | export default Component;
|