Basic discussions forum framework
Adds the basic structure for the Discussions MFE around which future development will happen.
This commit is contained in:
12
src/discussions/utils.js
Normal file
12
src/discussions/utils.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/* eslint-disable import/prefer-default-export */
|
||||
export function buildIntlSelectionList(options, intl, messages) {
|
||||
return Object.values(options)
|
||||
.map(
|
||||
option => (
|
||||
{
|
||||
label: intl.formatMessage(messages[option]),
|
||||
value: option,
|
||||
}
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user