import { useMutation } from '@tanstack/react-query';
import { NullSeamClientError, useSeamClient } from '../../../lib/seam/use-seam-client.js';
export function useGenerateAccessCodeCode() {
    const { client } = useSeamClient();
    return useMutation({
        mutationFn: async (mutationParams) => {
            if (client === null)
                throw new NullSeamClientError();
            return await client.accessCodes.generateCode(mutationParams);
        },
    });
}
//# sourceMappingURL=use-generate-access-code-code.js.map