Vector-Local/stories/Menu.stories.js
jdlrobson a3bb097cf8 Refactor: Generalise personal menu
the PersonalMenu should be generalised. In future we will use it as
the template for all menus

Bug: T249372
Change-Id: Id1c43d2e9eefef1d7aec45f0137e27f10ad935df
2020-05-05 17:34:44 -07:00

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 );