Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

806 B
Raw Blame
<script setup lang="ts">
import type { PreviewAccount } from '@/components/posts/previews/types';
import { getInitials } from '@/composables/useInitials';


withDefaults(
    defineProps<{
        account: PreviewAccount;
        square?: boolean;
    }>(),
    { square: false },
);
</script>

<template>
    <span
        class="flex shrink-0 items-center justify-center overflow-hidden bg-primary-strong text-sm font-medium text-primary-strong-foreground"
        :class="square ? 'rounded-md' : 'rounded-full'"
    >
        <img
            v-if="account.avatar_url"
            :src="account.avatar_url"
            :alt="account.display_label"
            class="size-full object-cover"
        />
        <template v-else>{{ getInitials(account.display_label) }}</template>
    </span>
</template>