initial
This commit is contained in:
6
ts_catalog/helpers/articlehelpers.ts
Normal file
6
ts_catalog/helpers/articlehelpers.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import * as belliniApi from '@bellini/api';
|
||||
|
||||
export const getArticleUrl = (articleArg: belliniApi.IBelliniClientState['articles'][0]) => {
|
||||
const articleUrl = `/article/${articleArg.belliniId}/${encodeURIComponent(articleArg.title.toLowerCase().replace(/\s/g, '-'))}`;
|
||||
return articleUrl;
|
||||
};
|
5
ts_catalog/helpers/index.ts
Normal file
5
ts_catalog/helpers/index.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import * as articlehelpers from './articlehelpers.js';
|
||||
|
||||
export {
|
||||
articlehelpers
|
||||
}
|
Reference in New Issue
Block a user