--- import Embed from "./Embed.astro"; import Card from "./Card.astro"; import type { SocialData } from "../cache_fetch/deps/social_data"; import type { Status } from "../plugins/mastodon/types"; export type ImageMedia = { id: string, src: string, alt: string, objectPosition: string }[] export type VideoMedia = { id: string, src: string, alt: string, poster: string, } export type AudioMedia = { src: string, poster?: string, } export type Props = { date: string; displayName: string; html: string; profileImage?: any; profileUrl: string; social?: Partial; url: string; username: string images?: ImageMedia video?: VideoMedia poll?: Status['poll'] audio?: AudioMedia, class?: string }; export type MicroBlogProps = Props const { date, displayName, html, profileImage, profileUrl, url, username, social, class: className, } = Astro.props; ---
{ profileImage && (
) }
{displayName}
{username}
{ social && ( ) }