15 lines
229 B
JavaScript
15 lines
229 B
JavaScript
|
import { dataText } from '../text.js';
|
|||
|
|
|||
|
/**
|
|||
|
* @param {string} key
|
|||
|
* @returns {string}
|
|||
|
*/
|
|||
|
|
|||
|
export const getTextForModal = (key) => {
|
|||
|
if (!key) {
|
|||
|
return '[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> value].';
|
|||
|
}
|
|||
|
|
|||
|
return dataText[key] ?? `[${key}].`;
|
|||
|
};
|