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.

1.0 KB
Raw Blame
<script setup lang="ts">
import type { Component } from 'vue';

defineProps<{
    icon?: Component;
    title: string;
    description?: string;
}>();
</script>

<template>
    <div
        class="flex min-h-0 flex-1 flex-col items-center justify-center p-12 text-center"
        data-testid="empty-state"
    >
        <div v-if="$slots.illustration" class="mb-6">
            <slot name="illustration" />
        </div>
        <div
            v-else-if="icon"
            class="mb-4 flex size-12 items-center justify-center rounded-full bg-muted text-muted-foreground"
        >
            <component :is="icon" class="size-6" stroke-width="1.75" />
        </div>
        <h3 class="mb-1 font-heading text-base font-medium text-foreground">
            {{ title }}
        </h3>
        <p v-if="description" class="max-w-xs text-sm text-muted-foreground">
            {{ description }}
        </p>
        <div v-if="$slots.action" class="mt-6 flex gap-2">
            <slot name="action" />
        </div>
    </div>
</template>