import { useState } from 'react';
import { useWixPatternsContainer, useCreateAmbassadorCollection, } from '@wix/bex-core/react';
import { TableState } from '../../state';
export function useAmbassadorTable(config) {
    const createCollection = useCreateAmbassadorCollection();
    const container = useWixPatternsContainer();
    const [state] = useState(() => new TableState({
        collection: createCollection(config),
        container,
    }));
    return state;
}
//# sourceMappingURL=useAmbassadorTable.js.map