import useEngineContext from "./useEngineContext";
import { isString } from "@pisell/utils";
var useTranslationOriginal = function useTranslationOriginal() {
  var _context$appHelper, _context$appHelper$ut;
  var context = useEngineContext();
  return (context === null || context === void 0 ? void 0 : (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : (_context$appHelper$ut = _context$appHelper.utils) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.translationOriginal) || function (val) {
    return isString(val) ? val : val === null || val === void 0 ? void 0 : val.original;
  };
};
export default useTranslationOriginal;