Files
portal/app/resources/js/components/ui/StatusPill.story.vue
T

30 lines
914 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import StatusPill from './StatusPill.vue';
import { STATUS_PILL_SLUGS } from '../../composables/useStatusPill';
const labelMap: Record<string, string> = {
new: 'Новый',
in_progress: 'В работе',
callback: 'Перезвонить',
quality: 'Качественный',
meeting_set: 'Встреча',
won: 'Продано',
refund: 'Возврат',
duplicate: 'Дубль',
junk: 'Спам',
no_answer: 'Нет ответа',
cancelled: 'Отменено',
closed: 'Закрыто',
postponed: 'Отложено',
archived: 'Архив',
};
</script>
<template>
<Story title="UI/StatusPill" :layout="{ type: 'grid', width: 200 }">
<Variant v-for="slug in STATUS_PILL_SLUGS" :key="slug" :title="slug">
<StatusPill :slug="slug" :label="labelMap[slug]" />
</Variant>
</Story>
</template>