| 1 | <template> |
| 2 | <Icon :name="assignee ? AssigneeIcon : WarningIcon" :size="size || 16" /> |
| 3 | </template> |
| 4 | |
| 5 | <script setup lang="ts"> |
| 6 | import { toRefs } from "vue" |
| 7 | import Icon from "@/components/common/Icon.vue" |
| 8 | |
| 9 | const props = defineProps<{ assignee: string | null; size?: number }>() |
| 10 | const { assignee, size } = toRefs(props) |
| 11 | |
| 12 | const AssigneeIcon = "carbon:user-military" |
| 13 | const WarningIcon = "carbon:warning-hex" |
| 14 | </script> |