teqo-backup/src/components/campaign/shared/OpsListPage.tsx
Cursor Agent 45eaabd23c
CL3: align provider nesting and tighten OpsList types
Wrap the estimate-scenario provider outside both flag paths, type empty
as nullable, and drop the duplicated fail-closed unit assertion.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 22:31:07 +00:00

21 lines
625 B
TypeScript

import type { ReactNode } from 'react'
import { OpsListView, type OpsListViewProps } from '@/components/campaign/shared/OpsListView'
export type OpsListPageProps = OpsListViewProps
/**
* CL3 — casca server da factory de listas unificadas.
*
* Reencaminha slots para `OpsListView`. Nome estável para as pages/CL8 pins;
* lógica de offline (OH12) vive na rota (`OfflineBoundary`), não aqui.
*/
export const OpsListPage = ({
overview,
toolbar,
table,
empty,
footer,
}: OpsListPageProps): ReactNode => (
<OpsListView overview={overview} toolbar={toolbar} table={table} empty={empty} footer={footer} />
)