mirror of
https://github.com/portainer/portainer.git
synced 2025-11-26 14:06:05 +08:00
feat(docker): migrate files table to react [EE-4663] (#8916)
This commit is contained in:
@@ -4,6 +4,11 @@ import { useStore } from 'zustand';
|
||||
import { useSearchBarState } from './SearchBar';
|
||||
import { BasicTableSettings, CreatePersistedStoreReturn } from './types';
|
||||
|
||||
export type TableState<TSettings extends BasicTableSettings> = TSettings & {
|
||||
setSearch: (search: string) => void;
|
||||
search: string;
|
||||
};
|
||||
|
||||
export function useTableState<
|
||||
TSettings extends BasicTableSettings = BasicTableSettings
|
||||
>(store: CreatePersistedStoreReturn<TSettings>, storageKey: string) {
|
||||
|
||||
Reference in New Issue
Block a user