index.js 368 B

12345678910
  1. import { Box } from "@mui/material";
  2. import { CUserForm } from "./UserForm";
  3. import { connect } from "react-redux";
  4. export const AdminUserPage = ({ good }) => (
  5. <Box className="AdminUserPage">
  6. <CUserForm good={good} />
  7. </Box>
  8. );
  9. export const CAdminUserPage = connect((state) => ({ good: state.promise?.adminUserById?.payload || {} }))(AdminUserPage);