2021-05-26 23:23:53 +00:00
|
|
|
import mustache from 'mustache';
|
|
|
|
import { menuTemplate } from './Menu.stories.data';
|
2021-05-27 21:47:55 +00:00
|
|
|
import { PERSONAL_MENU_TEMPLATE_DATA, USER_LINKS_LOGGED_IN_TEMPLATE_DATA, USER_LINKS_LOGGED_OUT_TEMPLATE_DATA } from './UserLinks.stories.data';
|
2021-06-03 21:37:01 +00:00
|
|
|
import { userLinksTemplateLegacy, userLinksTemplate } from './UserLinks.stories.data';
|
2021-05-27 21:47:55 +00:00
|
|
|
import '../resources/skins.vector.styles.legacy/components/UserLinks.less';
|
|
|
|
import '../resources/skins.vector.styles/components/UserLinks.less';
|
2021-05-26 23:23:53 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'UserLinks'
|
|
|
|
};
|
|
|
|
|
|
|
|
export const legacyLoggedOut = () => mustache.render(
|
|
|
|
userLinksTemplateLegacy,
|
|
|
|
{
|
|
|
|
'data-personal': PERSONAL_MENU_TEMPLATE_DATA.loggedOut
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Menu: menuTemplate
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
export const legacyLoggedInWithEcho = () => mustache.render(
|
|
|
|
userLinksTemplateLegacy,
|
|
|
|
{
|
|
|
|
'data-personal': PERSONAL_MENU_TEMPLATE_DATA.loggedInWithEcho
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Menu: menuTemplate
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
export const legacyLoggedInWithULS = () => mustache.render(
|
|
|
|
userLinksTemplateLegacy,
|
|
|
|
{
|
|
|
|
'data-personal': PERSONAL_MENU_TEMPLATE_DATA.loggedInWithULS
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Menu: menuTemplate
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2021-05-27 21:47:55 +00:00
|
|
|
export const loggedInUserLinks = () => mustache.render(
|
2021-05-26 23:23:53 +00:00
|
|
|
userLinksTemplate,
|
|
|
|
USER_LINKS_LOGGED_IN_TEMPLATE_DATA,
|
|
|
|
{
|
2021-06-03 21:37:01 +00:00
|
|
|
Menu: menuTemplate
|
2021-05-27 21:47:55 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
export const loggedOutUserLinks = () => mustache.render(
|
|
|
|
userLinksTemplate,
|
|
|
|
USER_LINKS_LOGGED_OUT_TEMPLATE_DATA,
|
|
|
|
{
|
2021-06-03 21:37:01 +00:00
|
|
|
Menu: menuTemplate
|
2021-05-26 23:23:53 +00:00
|
|
|
}
|
|
|
|
);
|