comedians.ts

import { CHANNEL_IDS } from '../../utility/constants/values';
import { getVideosWithSelectedAttributes } from './lib';

interface Comedian {}

// TODO: change the default to interface
export default function comedianMapper(comedian = { videos: {}, basic: {} }) {
  const { videos, basic } = comedian;
  const transformedComedian = {
    basic,
    videos: getVideosWithSelectedAttributes(videos, CHANNEL_IDS)
  };
  return transformedComedian;
}