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 {
ApiKeyManagementListView,
ApiKeyManagementListDataTable,
ApiKeyManagementListHeader,
ApiKeyManagementListActions,
ApiKeyManagementListTitle,
} from "./components/api-key-management-list-view"
const Root = ({ children }: { children?: ReactNode }) => {
return (
<SingleColumnPage
hasOutlet
data-testid="publishable-api-keys-list-page"
>
<WidgetZone id="api-keys.list">
{Children.count(children) > 0 ? children : <ApiKeyManagementListView />}
</WidgetZone>
</SingleColumnPage>
)
}
export const ApiKeyManagementListPage = Object.assign(Root, {
Table: ApiKeyManagementListView,
Header: ApiKeyManagementListHeader,
HeaderTitle: ApiKeyManagementListTitle,
HeaderActions: ApiKeyManagementListActions,
DataTable: ApiKeyManagementListDataTable,
})