import React, { memo, useState, useEffect } from 'react'; import { Space, Tag, ConfigProvider, Button, Row, Col, Card, Input } from 'antd'; import { PlusOutlined, EditOutlined, DeleteOutlined, EyeOutlined, SearchOutlined, } from '@ant-design/icons'; import { NotifAlert, NotifConfirmDialog } from '../../../../components/Global/ToastNotif'; import { useNavigate } from 'react-router-dom'; import { deletePlantSection, getAllPlantSection } from '../../../../api/master-plant-section'; import TableList from '../../../../components/Global/TableList'; const columns = (showPreviewModal, showEditModal, showDeleteDialog) => [ { title: 'Section Code', dataIndex: 'sub_section_code', key: 'sub_section_code', width: '20%', }, { title: 'Plant Sub Section Name', dataIndex: 'sub_section_name', key: 'sub_section_name', width: '40%', }, { title: 'Status', dataIndex: 'is_active', key: 'is_active', width: '15%', align: 'center', render: (status) => ( {status ? 'Active' : 'Inactive'} ), }, { title: 'Aksi', key: 'aksi', align: 'center', width: '15%', render: (_, record) => ( } size="large" /> ); }); export default ListPlantSection;