2021-05-26 23:23:53 +00:00
|
|
|
import mustache from 'mustache';
|
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-09-13 21:19:58 +00:00
|
|
|
import { userLinksTemplateLegacy, userLinksTemplate,
|
|
|
|
USER_LINK_PARTIALS } 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
|
|
|
|
},
|
2021-09-13 21:19:58 +00:00
|
|
|
USER_LINK_PARTIALS
|
2021-05-26 23:23:53 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
export const legacyLoggedInWithEcho = () => mustache.render(
|
|
|
|
userLinksTemplateLegacy,
|
|
|
|
{
|
|
|
|
'data-personal': PERSONAL_MENU_TEMPLATE_DATA.loggedInWithEcho
|
|
|
|
},
|
2021-09-13 21:19:58 +00:00
|
|
|
USER_LINK_PARTIALS
|
2021-05-26 23:23:53 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
export const legacyLoggedInWithULS = () => mustache.render(
|
|
|
|
userLinksTemplateLegacy,
|
|
|
|
{
|
|
|
|
'data-personal': PERSONAL_MENU_TEMPLATE_DATA.loggedInWithULS
|
|
|
|
},
|
2021-09-13 21:19:58 +00:00
|
|
|
USER_LINK_PARTIALS
|
2021-05-26 23:23:53 +00:00
|
|
|
);
|
|
|
|
|
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-09-13 21:19:58 +00:00
|
|
|
USER_LINK_PARTIALS
|
2021-05-27 21:47:55 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
export const loggedOutUserLinks = () => mustache.render(
|
|
|
|
userLinksTemplate,
|
|
|
|
USER_LINKS_LOGGED_OUT_TEMPLATE_DATA,
|
2021-09-13 21:19:58 +00:00
|
|
|
USER_LINK_PARTIALS
|
2021-05-26 23:23:53 +00:00
|
|
|
);
|