import React, { useCallback } from "react";
import { pageModel, userModel } from "@/stores";
import Designer from "@/components/designer";
import {
  defineCustomElements,
  applyPolyfills,
} from "@tarojs/components/loader";
import reactifyWc from "@fangzhou/ktaro-reactify-wc";

applyPolyfills().then(function () {
  defineCustomElements(window);
});

(window as any).reactifyWc = reactifyWc;

const App = () => {
  return (
    <div>
      <Designer />
    </div>
  );
};

export default App;
