<script setup lang="ts">
import { defineProps, computed } from 'vue'
import { official, community } from '../../gallery'

const props = defineProps({
  collection: {
    default: 'offical',
  },
})

const themes = computed(() => props.collection === 'official' ? official : community)
</script>

<template>
  <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4">
    <ThemeInfo v-for="theme of themes" :key="theme.id" :theme="theme" />
  </div>
</template>
