import type { CardDefinition } from '../../types'; import CreateProductHuntCardModal from './CreateProductHuntCardModal.svelte'; import ProductHuntCard from './ProductHuntCard.svelte'; const cardType = 'producthunt'; export const ProductHuntCardDefinition = { type: cardType, contentComponent: ProductHuntCard, creationModalComponent: CreateProductHuntCardModal, createNew: (item) => { item.cardType = cardType; item.cardData = {}; item.w = 4; item.h = 2; item.mobileW = 8; item.mobileH = 2; }, defaultColor: 'transparent', allowSetColor: false, minH: 1, name: 'Product Hunt', keywords: ['producthunt', 'product', 'launch', 'badge'], groups: ['Social'], icon: `` } as CardDefinition & { type: typeof cardType };