import useSingleContestBopConfig from './useSingleContestBopConfig';
import useContestCollectionBopConfig from './useContestCollectionBopConfig';

// TO DO: flips

const useContestBopConfig = ({
  contestId,
  collectionId
}) => {
  const singleContestConfig = useSingleContestBopConfig(contestId);
  const contestCollectionConfig = useContestCollectionBopConfig(collectionId);
  if (contestId) {
    return singleContestConfig;
  }
  if (collectionId) {
    return contestCollectionConfig;
  }
  return undefined;
};
export default useContestBopConfig;