<script setup>
defineProps({
    title: String
});
</script>

<template>
    <div v-if="title" class="flex w-full justify-center py-4">
        <h1
            class="font-bold text-2xl tracking-wide"
            v-text="title"
        />
    </div>
    <div v-if="$slots.default" class="flex w-full justify-end py-2 mb-3">
        <div id="buttons" class="flex items-center space-x-1 text-sm">
            <slot />
        </div>
    </div>
</template>