Skip to content

armgit / spree

Public Imported from GitHub
0

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.

551 B
Raw Blame
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} />
}