mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 21:41:46 +08:00
18 lines
395 B
JavaScript
Executable File
18 lines
395 B
JavaScript
Executable File
import pick from 'lodash.pick';
|
|
import { Root } from '@storybook/components';
|
|
|
|
import { inject } from 'mobx-react';
|
|
|
|
export default inject(stores => {
|
|
const state = stores.store;
|
|
const { shortcutOptions, uiOptions } = state;
|
|
const currentOptions = pick(shortcutOptions, 'panel', 'full', 'nav');
|
|
|
|
return {
|
|
options: {
|
|
...currentOptions,
|
|
...uiOptions,
|
|
},
|
|
};
|
|
})(Root);
|