your personal website on atproto - mirror blento.app
at profile-stuff-2 23 lines 552 B view raw
1import type { CardDefinition } from '../types'; 2import CreateEmbedCardModal from './CreateEmbedCardModal.svelte'; 3import EmbedCard from './EmbedCard.svelte'; 4 5export const EmbedCardDefinition = { 6 type: 'embed', 7 contentComponent: EmbedCard, 8 creationModalComponent: CreateEmbedCardModal, 9 10 createNew: (card) => { 11 card.w = 4; 12 card.h = 4; 13 card.mobileH = 8; 14 card.mobileW = 8; 15 }, 16 17 // canChange: (item) => Boolean(item.cardData.href), 18 19 // change: (item) => { 20 // return item; 21 // }, 22 name: 'Embed Card' 23} as CardDefinition & { type: 'embed' };