import { t } from '@vegaprotocol/i18n'; import { Splash } from '@vegaprotocol/ui-toolkit'; import { useVegaWallet } from '@vegaprotocol/wallet'; import { FillsManager } from '@vegaprotocol/fills'; import { create } from 'zustand'; import { persist } from 'zustand/middleware'; import { useDataGridEvents } from '@vegaprotocol/datagrid'; import type { DataGridSlice } from '../../stores/datagrid-store-slice'; import { createDataGridSlice } from '../../stores/datagrid-store-slice'; export const FillsContainer = ({ marketId, onMarketClick, }: { marketId?: string; onMarketClick?: (marketId: string, metaKey?: boolean) => void; }) => { const { pubKey } = useVegaWallet(); const gridStore = useFillsStore((store) => store.gridStore); const updateGridStore = useFillsStore((store) => store.updateGridStore); const gridStoreCallbacks = useDataGridEvents(gridStore, (colState) => { updateGridStore(colState); }); if (!pubKey) { return ( {t('Please connect Vega wallet')} ); } return ( ); }; const useFillsStore = create()( persist(createDataGridSlice, { name: 'vega_fills_store', }) );
{t('Please connect Vega wallet')}