mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
a3bb097cf8
the PersonalMenu should be generalised. In future we will use it as the template for all menus Bug: T249372 Change-Id: Id1c43d2e9eefef1d7aec45f0137e27f10ad935df
23 lines
683 B
JavaScript
23 lines
683 B
JavaScript
import mustache from 'mustache';
|
|
import { menuTemplate, PERSONAL_MENU_TEMPLATE_DATA } from './Menu.stories.data';
|
|
import '../resources/skins.vector.styles/Menu.less';
|
|
import '../.storybook/common.less';
|
|
|
|
export default {
|
|
title: 'Menu'
|
|
};
|
|
|
|
export const menu = () => mustache.render(
|
|
menuTemplate,
|
|
PERSONAL_MENU_TEMPLATE_DATA.defaultMenu
|
|
);
|
|
|
|
export const loggedOut = () => mustache.render( menuTemplate,
|
|
PERSONAL_MENU_TEMPLATE_DATA.loggedOut );
|
|
|
|
export const loggedInWithEcho = () => mustache.render( menuTemplate,
|
|
PERSONAL_MENU_TEMPLATE_DATA.loggedInWithEcho );
|
|
|
|
export const loggedInWithULS = () => mustache.render( menuTemplate,
|
|
PERSONAL_MENU_TEMPLATE_DATA.loggedInWithULS );
|