// import { Button } from "antd";
// import React, { useEffect, useState } from "react";
// import { useTranslation } from "react-i18next";
// import { connect } from "react-redux";
// import { createStructuredSelector } from "reselect";
// import RbacWrapper from "../../components/rbac-wrapper/rbac-wrapper.component";
// import ShopTemplateEditor from "../../components/shop-template-editor/shop-template-editor.container";
// import ShopTemplatesListContainer from "../../components/shop-templates-list/shop-templates-list.container";
// import {
//   setBreadcrumbs,
//   setSelectedHeader,
// } from "../../redux/application/application.actions";
// import { selectBodyshop } from "../../redux/user/user.selectors";

// const mapStateToProps = createStructuredSelector({
//   bodyshop: selectBodyshop,
// });
// const mapDispatchToProps = (dispatch) => ({
//   setBreadcrumbs: (breadcrumbs) => dispatch(setBreadcrumbs(breadcrumbs)),
//   setSelectedHeader: (key) => dispatch(setSelectedHeader(key)),
// });

// export function ShopTemplatesContainer({
//   setBreadcrumbs,
//   bodyshop,
//   setSelectedHeader,
// }) {
//   const { t } = useTranslation();
//   const drawerVisibility = useState(false);
//   useEffect(() => {
//     document.title = t("titles.shop-templates");
//     setSelectedHeader("shop-templates");
//     setBreadcrumbs([
//       {
//         link: "/manage/shop",
//         label: t("titles.bc.shop", { shopname: bodyshop.shopname }),
//       },
//       { link: "/manage/shop/templates", label: t("titles.bc.shop-templates") },
//     ]);
//   }, [t, setBreadcrumbs, bodyshop.shopname, setSelectedHeader]);

//   return (
//     <RbacWrapper action="shop:templates">
//       <div>
//         <ShopTemplatesListContainer openState={drawerVisibility} />
//         <Button onClick={() => drawerVisibility[1](true)}>Show List</Button>
//         <ShopTemplateEditor />
//       </div>
//     </RbacWrapper>
//   );
// }

// export default connect(
//   mapStateToProps,
//   mapDispatchToProps
// )(ShopTemplatesContainer);
