<template>
  <section class="section-list">
    <list-table-content
      :tableHeader="tableHeader"
      icon="draws"
      title="Üye Logları"
      listText="Kayıt"
      apiList="CekilisAtamaLog"/>
  </section>
</template>
<script setup lang="ts">
  import { ref } from 'vue'
  import { useDateStore } from '@/stores/dateStore'
  const dateStore = useDateStore()

  interface ITableHead {
    [key: string]: any
  }

  const tableHeader:ITableHead = ref([
    {
      name: 'tarih',
      title: 'İşlem Tarihi',
      compute: (v: { [key: string]: string }): string => {
        return dateStore.dateFormat({ date: v.tarih })
      },
      sort: true,
      style:{width:'10%'}
    },
    {
      name: 'islemiYapan',
      title: 'İşlemi yapan',
      sort: true,
      style:{width:'20%'}
    },
    {
      name: 'islem',
      title: 'İşlem',
      sort: true
    }
  ])
</script>
