import { IconProps } from '@chakra-ui/react' import { BoxIcon, CalendarIcon, ChatIcon, CheckSquareIcon, CodeIcon, CreditCardIcon, EditIcon, EmailIcon, ExternalLinkIcon, FilmIcon, FilterIcon, FlagIcon, GlobeIcon, ImageIcon, LayoutIcon, NumberIcon, PhoneIcon, SendEmailIcon, StarIcon, TextIcon, UploadIcon, WebhookIcon, } from 'assets/icons' import { GoogleAnalyticsLogo, GoogleSheetsLogo, MakeComLogo, PabblyConnectLogo, ZapierLogo, } from 'assets/logos' import { BubbleBlockType, InputBlockType, IntegrationBlockType, LogicBlockType, BlockType, } from 'models' import React from 'react' type BlockIconProps = { type: BlockType } & IconProps export const BlockIcon = ({ type, ...props }: BlockIconProps) => { switch (type) { case BubbleBlockType.TEXT: return case BubbleBlockType.IMAGE: return case BubbleBlockType.VIDEO: return case BubbleBlockType.EMBED: return case InputBlockType.TEXT: return case InputBlockType.NUMBER: return case InputBlockType.EMAIL: return case InputBlockType.URL: return case InputBlockType.DATE: return case InputBlockType.PHONE: return case InputBlockType.CHOICE: return case InputBlockType.PAYMENT: return case InputBlockType.RATING: return case InputBlockType.FILE: return case LogicBlockType.SET_VARIABLE: return case LogicBlockType.CONDITION: return case LogicBlockType.REDIRECT: return case LogicBlockType.CODE: return case LogicBlockType.TYPEBOT_LINK: return case IntegrationBlockType.GOOGLE_SHEETS: return case IntegrationBlockType.GOOGLE_ANALYTICS: return case IntegrationBlockType.WEBHOOK: return case IntegrationBlockType.ZAPIER: return case IntegrationBlockType.MAKE_COM: return case IntegrationBlockType.PABBLY_CONNECT: return case IntegrationBlockType.EMAIL: return case 'start': return } }