import { __assign } from "tslib";
/* eslint-disable react/react-in-jsx-scope */
// @ts-nocheck
import React from 'react';
import { generatePath } from 'react-router-dom';
import { BlogCard } from '../components/BlogCard/BlogCard';
import { CaseCard } from '../components/CaseCard/CaseCard';
import { DefaultCard } from '../components/DefaultCard/DefaultCard';
import { LinkCard } from '../components/LinkCard/LinkCard';
import { VideoCard } from '../components/VideoCard/VideoCard';
export var renderReference = function (props, aliases) {
    var contentType = props.contentType, item = props.item;
    switch (contentType) {
        // Blog post
        case 0:
            return (React.createElement(BlogCard, __assign({}, item, { path: generatePath(aliases.BLOG_SINGLE, {
                    slug: item.slug
                }) }, props)));
        // CaseCard
        case 1:
            return (React.createElement(CaseCard, __assign({}, item, props, { routePath: generatePath(aliases.CASE_PAGE, {
                    slug: item.slug
                }) })));
        // Landing
        case 2:
            return React.createElement(DefaultCard, __assign({ view: "filled" }, item, { redirectTo: item.link }));
        // VideoCard
        case 3:
            return React.createElement(VideoCard, __assign({ view: "filled" }, item));
        // Offering
        case 4:
            if (item.industrySlug) {
                return (React.createElement(DefaultCard, __assign({ view: "filled" }, item, { path: generatePath(aliases.INDUSTRIES_PAGE_INNER, {
                        slug: item.industrySlug,
                        // eslint-disable-next-line @typescript-eslint/camelcase
                        inner_page: item.slug
                    }), linkTitle: props.linkTitle })));
            }
            break;
        // LinkCard
        case 6:
            return React.createElement(LinkCard, __assign({}, item, props));
        default:
            break;
    }
};
