const tableConfig = {
  columns:     [
    {
      title: "ID",
      field: "id",
      sorter: "number"
    },
    {
      title: "Статус",
      field: "status",
      render: ` {{#if (eq status 'ok')}}
                  <i class="ri-checkbox-circle-line text-green-700"></i>
                {{else}}
                  <i class="ri-close-circle-line text-red-700"></i>
                {{/if}}
              `
    },
    {
      title: "Дата создания",
      field: "insertedAt",
      render: "{{ dt_format ( dt_shift insertedAt 3 'hours'  )}}"
    },
    {
      title: "Выполнено X времени назад",
      field: "from_now",
      render: "{{ from_now ( dt_shift insertedAt 3 'hours'  )}}"
    },
    {
      title: "Время выполнения",
      field: "executionTime",
      render: "{{ time_from_sec executionTime }}"
    },
    {
      title: "Результат",
      field: "result",
      render: ` <input class="w-full p-0 border-0" value="{{ result }}" /> `
    }
  ],
  height: "600px",
  initialSort: [{column: "id", dir: "desc"}]
}

export default tableConfig