/* eslint-disable import/no-extraneous-dependencies */
import { returnDataSet } from 'gatsby-core-theme/src/helpers/search';

export default async function loadSource(uniqueField, indexFields) {
  // Search data source
  return import('../../data/search/data.json').then((data) =>
    returnDataSet(uniqueField, indexFields, data)
  );
}
