Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

744 B
Raw Blame
import { Children, ReactNode } from "react"

import { SingleColumnPage } from "@components/layout/pages"
import { WidgetZone } from "@mercurjs/dashboard-shared"

import {
  TeamListTable,
  TeamListDataTable,
  TeamListHeader,
  TeamListActions,
  TeamListTitle,
} from "./_components"

const Root = ({ children }: { children?: ReactNode }) => {
  return (
    <SingleColumnPage hasOutlet>
      <WidgetZone id="team.list">
        {Children.count(children) > 0 ? children : <TeamListTable />}
      </WidgetZone>
    </SingleColumnPage>
  )
}

export const TeamListPage = Object.assign(Root, {
  Table: TeamListTable,
  Header: TeamListHeader,
  HeaderTitle: TeamListTitle,
  HeaderActions: TeamListActions,
  DataTable: TeamListDataTable,
})