import { Button, helper, Toast, PageProvider } from '@feewee/h5app-common';
import { Helmet } from '@modern-js/runtime/head';
import { useNavigate } from '@modern-js/runtime/router';

// 索赔复核审批 todo 待迁移
function Index() {
  const navigate = useNavigate();

  return (
    <PageProvider tittle="索赔复核审批" onBackClick={() => helper.checkBack(() => navigate(-1))}>
      <main className="p-4 h-screen h-svh">
        <div className=" mt-4">
          <Button
            type="primary"
            shape="round"
            className="!mx-auto !block !mt-4"
            onClick={() =>
              Toast.show({
                content: '成功提示',
                icon: 'success',
              })
            }
          >
            吐司提示
          </Button>
        </div>
      </main>
    </PageProvider>
  );
}

export default Index;
