Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
import { type ResourceSearch, resourceSearchSchema } from '@spree/dashboard-core'
import { createFileRoute } from '@tanstack/react-router'
import { EarningsPage } from '../../../../pages/earnings'
/** What this seller has earned: their balance, then the ledger behind it. */
export const Route = createFileRoute('/_authenticated/$sellerId/earnings/')({
validateSearch: resourceSearchSchema,
component: EarningsRoute,
})
function EarningsRoute() {
const search = Route.useSearch() as ResourceSearch
return <EarningsPage search={search} />
}