<script setup lang="ts">
import { computed } from 'vue'
import { storeToRefs } from 'pinia'
import { useStrategyTypesStore } from '../../stores/strategyTypes'
import CategoryItemList from '../CategoryItemList.vue'

const store = useStrategyTypesStore()
const { types } = storeToRefs(store)

const rows = computed(() =>
  Object.entries(types.value).map(([id, t]) => ({ id, display_name: t.display_name, description: t.description }))
)
</script>

<template>
  <CategoryItemList category="strategy" :rows="rows" />
</template>
