import { swellConfig } from '../../index' const fetchSwellApi = async ( query: string, method: string, variables: [] = [] ) => { const { swell } = swellConfig return await swell[query][method](...variables) } export default fetchSwellApi