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.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
<script setup lang="ts">
import { computed, type Component } from 'vue';
import { filled } from '@/lib/helpers';
const props = defineProps<{
title?: string;
total?: number | null;
icon?: Component;
}>();
/** The count shows after the title once there is something to count. */
const hasTotal = computed((): boolean => {
if (!filled(props.total)) {
return false;
}
return props.total > 0;
});
</script>
<template>
<div class="flex min-w-0 items-center gap-2">
<span
v-if="icon"
class="flex size-[42px] shrink-0 items-center justify-center rounded-xl border border-border-strong bg-card text-foreground"
data-testid="header-icon"
aria-hidden="true"
>
<component :is="icon" class="size-6" stroke-width="1.5" />
</span>
<div class="min-w-0">
<slot>
<h1
v-if="title"
class="truncate font-heading text-xl leading-tight font-medium text-foreground"
data-testid="header-title"
>
{{ title }}
<span
v-if="hasTotal"
class="text-muted-foreground"
data-testid="header-title-total"
>
({{ total }})
</span>
</h1>
</slot>
</div>
</div>
</template>