<script lang="ts">
  import { relativeTime } from '$lib/utils'

  let { value }: { value: unknown } = $props()
</script>

<span class="text-xs text-muted-foreground">{relativeTime(String(value ?? ''))}</span>
