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