15 lines
238 B
JavaScript
15 lines
238 B
JavaScript
import { dataText } from '../text.js';
|
|
|
|
/**
|
|
* @param {string} key
|
|
* @returns {string}
|
|
*/
|
|
|
|
export const getTextForModal = (key) => {
|
|
if (!key) {
|
|
return '[Отсутвует value].';
|
|
}
|
|
|
|
return dataText[key] ?? `[${key}].`;
|
|
};
|