<template>
  <BaseBlock
    :title="`Лента товаров - ${value.title || 'Без заголовка'}`"
    @onRemove="$emit('onRemove')"
    @onShowSettings="$emit('onShowSettings')"
  >
    <div class="tw:mt-3 tw:text-sm tw:dark:text-slate-300 tw:space-y-1">
      <div>
        <span class="tw:font-bold tw:dark:text-slate-200">Описание:</span>
        {{ value.description }}
      </div>
      <div>
        <span class="tw:font-bold tw:dark:text-slate-200">Максимальное кол-во страниц:</span>
        {{ value.data.max_page_count }}
      </div>
    </div>
  </BaseBlock>
</template>

<script setup>
import BaseBlock from "@/components/MainPageConfigurator/Blocks/BaseBlock.vue";

const emit = defineEmits(['onRemove', 'onShowSettings']);
const props = defineProps({
  value: {
    type: Object,
    required: true,
  }
});
</script>
