<template>
  <list-table-content
    :tableHeader="tableHeader"
    formTitle="İlan Edilecek Diğer Mecralar"
    listText="Mecra"
    addAction=""
    :apiList="'Mecra/Cekilis/' + piyangoStore.selectedLottery"
    page="form"
    :isPreview="isPreview" />
</template>
<script setup lang="ts">
  import { ref } from 'vue'

  import { usePiyangoStore } from '../../stores/piyangoStore'
  const piyangoStore = usePiyangoStore()

  export interface Props {
    isPreview?: boolean
  }
  const props = withDefaults(defineProps<Props>(), { isPreview: false })

  const tableHeader = ref<Record<string, any>>([
    {
      name: 'mecraAdi',
      title: 'Mecra Adı',
      sort: props.isPreview ? false : true
    }
  ])
</script>
