<script setup lang="ts">
import { cn } from "@/lib/utils";

const props = defineProps<{
  class?: string;
  message?: string;
}>();
</script>

<template>
  <p
    v-if="message || $slots.default"
    :class="cn('text-destructive text-sm font-medium', props.class)"
  >
    <slot>{{ message }}</slot>
  </p>
</template>
