The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
import { ReactNode, Children } from "react";
import { WidgetZone } from "@mercurjs/dashboard-shared";
import { SingleColumnPage } from "../../../components/layout/pages";
import {
AttributeListView,
AttributeListDataTable,
AttributeListHeader,
AttributeListActions,
AttributeListTitle,
} from "./components/attribute-list-view";
const Root = ({ children }: { children?: ReactNode }) => {
return (
<SingleColumnPage showMetadata={false} showJSON={false} hasOutlet>
<WidgetZone id="attributes.list">
{Children.count(children) > 0 ? children : <AttributeListView />}
</WidgetZone>
</SingleColumnPage>
);
};
export const AttributeListPage = Object.assign(Root, {
Table: AttributeListView,
Header: AttributeListHeader,
HeaderTitle: AttributeListTitle,
HeaderActions: AttributeListActions,
DataTable: AttributeListDataTable,
});