/* eslint-disable import/prefer-default-export */
// eslint-disable-next-line import/no-extraneous-dependencies
import loadable from '@loadable/component';

export function getCard(type) {
  switch (type) {
    case 'operator':
      return loadable(() => import(`../components/atoms/cards/operator-card`));
    case 'event':
      return loadable(() => import(`../components/atoms/cards/event-card`));
    default:
      return loadable(() => import(`../components/atoms/cards/default-card`));
  }
}
