import { ReactNode } from "react"; import { FigmaIcon, GithubIcon, GitlabIcon, GoogleDocsIcon, JiraIcon, LinearIcon, SlackIcon, } from "@/components/icons"; import { IconPuzzle } from "@tabler/icons-react"; const integrationIconMap: Record ReactNode> = { github: (size) => , gitlab: (size) => , slack: (size) => , linear: (size) => , jira: (size) => , figma: (size) => , google_docs: (size) => , }; export function getIntegrationIcon( type: string, size: number, ): ReactNode { const renderIcon = integrationIconMap[type]; if (renderIcon) return renderIcon(size); return ; }