Line data Source code
1 5 : <template>
2 5 : <p
3 : v-for="line in lines"
4 : :key="line.text"
5 : :class="
6 : cn('m-0 flex items-center gap-1 text-sm text-muted-foreground', lineClass)
7 : "
8 : data-testid="billing-auto-top-up-line"
9 : >
10 : {{ line.text }}
11 : <BillingInfoTip v-if="line.tooltip" :text="line.tooltip" />
12 : </p>
13 : </template>
14 :
15 : <script setup lang="ts">
16 : import { cn } from '@comfyorg/tailwind-utils'
17 :
18 : import BillingInfoTip from './BillingInfoTip.vue'
19 : import type { AutoTopUpLine } from './autoTopUpCardView'
20 :
21 : const { lines, lineClass } = defineProps<{
22 : lines: readonly AutoTopUpLine[]
23 : lineClass?: string
24 : }>()
25 : </script>
|