Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pluralize.addPluralRule = (rule: string | RegExp, replacement: string) =>
require('pluralize').addPluralRule(rule, replacement)
pluralize.addSingularRule = (rule: string | RegExp, replacement: string) =>
import CloudQueue from 'material-ui/lib/svg-icons/file/cloud-queue';
import Divider from 'material-ui/lib/divider';
import pluralize from 'pluralize';
const topNavs = [];
function addNav(resourceId, icon, isPlural = true) {
topNavs.push({
primaryText: resourceId,
to: `/finder/${(isPlural ? pluralize(resourceId) : resourceId)}`,
leftIcon: icon,
});
}
pluralize.addPluralRule(/fo$/i, 'foes');
addNav('Member', );
addNav('AdminMember', );
addNav('Coupon', );
addNav('CouponMember', );
addNav('GameEventMember', );
addNav('GameEvents', );
addNav('GiftDepository', );
addNav('ItemList', );
addNav('MemberAccountBlockLog', );
addNav('MemberGameInfo', );
addNav('MemberGameInfoStage', );
addNav('MemberItemPurchase', );
addNav('MemberItem', );
addNav('Notice', );