import React, { useState } from 'react'; import { Table, Row, Col, Nav, Tab, Button, Form, InputGroup, Dropdown, DropdownButton, Modal, Spinner } from 'react-bootstrap'; import useSections from '../hooks/useSections'; import ModalOperation from '../../../../components/ui/adminMessageModal/ModalOperation'; import TablePaginate from '../../../../components/ui/TablePaginate'; const ManageSections = () => { const { sections, selectedImage, loading, error, selectedSection, formData, show, showLoader, loaderState, createSection, editSection, deleteSection, handleFormChange, handleImageChange, resetForm, handleShow, handleClose, handleShowLoader, handleCloseLoader, setLoaderState, thumbPath, page, totalData, totalPages, setSearch, handlePageChange, handleLimitsChange, handleSerachChange } = useSections(); return (

Sections

Description of Sectionss.

Section List

{ e.preventDefault(); handleSerachChange(); }}> { setSearch(e.target.value); }} /> {loading?( ):( sections.length > 0 ?( sections.map((section, index) => ( )) ):( ) )}
No Section Section Description Action
{index + 1} {section.NAME_SECTION} {section.DESCRIPTION_SECTION}

Empty Data

Item per page of {totalData}

Add Student Data

{ e.preventDefault(); createSection(); }}> Section Name* Section Description* Thumbnail*
thumbnail Ensure the file size is no larger than 5 MB
Update Teacher Data
{ e.preventDefault(); editSection(); }}> Thumbnail* thumbnail Ensure the file size is no larger than 5 MB Section Name* Section Description*
); }; export default ManageSections;