import type { IApi } from 'umi';

export default (api: IApi) => {
  api.addHTMLHeadScripts(() => [
    `
      window._USER_ = {
        "userId": "",
        "isAuthenticated": true,
        "phoneNumber": "",
        "isAgree": 1,
        "source": "web",
        "whiteEnable": false,
        "userName": ""
    }
    `,
    // react
    {
      src: 'https://g.alicdn.com/code/lib/react/18.2.0/umd/react.development.js',
      type: 'text/javascript',
    },
    {
      src: 'https://g.alicdn.com/code/lib/react-dom/18.2.0/umd/react-dom.development.js',
      type: 'text/javascript',
    },
  ]);
};
