import { useMemo } from 'react';
import useEngineContext from "./useEngineContext";
export default function usePrefix() {
  var _context$appHelper2;
  var context = useEngineContext();
  return useMemo(function () {
    var _context$appHelper;
    return (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.constants) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.staticURL) || 'https://static.pisellcdn.com';
  }, [context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.constants) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.staticURL]);
}