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 '[Îòñóòâóåò value].';
|
|
}
|
|
|
|
return dataText[key] ?? `[${key}].`;
|
|
};
|