<script lang="ts" setup>
/**
 * 创建 / 失效时间单元格
 */
import { PrescriptionExpireTime } from '#/components/wx-user-patient';

defineProps<{
  row: Record<string, any>;
}>();
</script>

<template>
  <div class="space-y-1 text-xs leading-snug">
    <div>
      <span class="text-gray-400">创建 </span>
      <span>{{ row.created_at || '—' }}</span>
    </div>
    <div>
      <span class="text-gray-400">失效 </span>
      <PrescriptionExpireTime :auto-expire-time="row.auto_expire_time" />
    </div>
  </div>
</template>
