import { Badge, Box, Button, FormControl, FormHelperText, FormLabel, HStack, Text } from '@chakra-ui/react' import React, { useState } from 'react' import { OPACITY_ON_LOAD } from '../../Layout/animations' import NormalTable from '../../Components/DataTable/NormalTable'; import { useGetUnbanInvestorQuery } from '../../Services/ban.investor.service'; import { formatDate, generateSerialNumber } from '../../Constants/Constants'; import { TABLE_PAGINATION } from '../../Constants/Paginations'; import ReactQuill from 'react-quill'; import 'react-quill/dist/quill.snow.css'; // Importing the Quill snow theme const EmailNotification = () => { const [isLoading, setIsLoading] = useState(false); const [ selectedRadio, setSelectedRadio] = useState([]) const [value, setValue] = useState(''); const { data : investorDetails, isLoading: investorDetailsLoading, refetch, } = useGetUnbanInvestorQuery(); // ====================================================[Table Setup]================================================================ const tableHeadRow = [ "Sr N/O", "Date", "Client ID", "First Name", "Last Name", "Country", "Phone Number", "E-mail ID", "KYC Status", ]; const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size); const [currentPage, setCurrentPage] = useState(TABLE_PAGINATION?.page); const extractedArray = investorDetails?.data?.rows?.map((item, idx) => ({ id: item?.principal_xid, "Sr N/O": ( {generateSerialNumber(idx,currentPage, pageSize )} ), Date: ( {formatDate(item?.date)} ), "Client ID": ( {item?.clientReference_id} ), "First Name": ( {item?.firstName} ), "Last Name": ( {item?.lastName} ), Country: ( {item?.country} ), "Phone Number": ( {item?.phoneNumber} ), "E-mail ID": ( {item?.emailAddress} ), "KYC Status": ( {item?.KYCStatus === true ? "Completed" : "Incompleted"} ), })); console.log(value); const modules = { toolbar: [ [{ 'header': '1'}, { 'header': '2'}, { 'font': [] }], [{size: []}], ['bold', 'italic', 'underline', 'strike', 'blockquote'], [{'list': 'ordered'}, {'list': 'bullet'}], // ['link', 'image', 'video'], ['clean'] ], }; return ( {/* */} Customize your email We'll never share your email. {/* Output: */} {/* */} ) } export default EmailNotification