import React, { FC } from "react"; import NairaBag from "../../assets/images/dashboard/naira-bag.png"; import { Button, Icons } from "../"; import { useSelector } from "react-redux"; import PendingList from "../paginated-list/PendingList"; export interface DashBoardCardProps { title?: string; desc?: string; descSpan?: string; descSpanClass?: string; onClick?: any; cardClass?: string; titleClass?: string; descClass?: string; btnTitle?: string; btnTextClass?: string; image?: any; imgClass?: string; } export const DashBoardCard: React.FC = ({ title, desc, onClick, cardClass, titleClass, descClass, descSpan, descSpanClass, btnTitle, btnTextClass, image, imgClass, }) => { return (
{title && (

{title}

)} {desc && (

{desc}{" "} {descSpan && ( {descSpan} )}

)} {btnTitle && (
{image && card-image}
); }; interface DashboardHomeIntroProps { handleNextStep:(value:{})=>any step?:number|string } const DashboardHomeIntro: FC = ({ handleNextStep, step }) => { const { userDetails } = useSelector((state:any) => state?.userDetails); // CHECKS IF USER Details are avaliable return (
{step == 1 ? <>

Hello, {userDetails.firstname}

handleNextStep({})} />
: <>

Welcome Back, {userDetails.firstname}

}
{({data}:any)=>(
{data.map((item:any, index:any) =>( ))}
Date Amount Payment Term Status Action
{'item.date'} The Sliding Mr. Bones (Next Stop, Pottersville) 12 Malcolm Lockyer
)}
); }; export default DashboardHomeIntro; const dummyData = [ {id: 1, name: 'obi John', last_login: '12/12/2024', image: 'string'}, {id: 1, name: 'obi John', last_login: '12/12/2024', image: 'string'}, {id: 1, name: 'obi John', last_login: '12/12/2024', image: 'string'}, {id: 1, name: 'obi John', last_login: '12/12/2024', image: 'string'}, {id: 1, name: 'obi John', last_login: '12/12/2024', image: 'string'}, {id: 1, name: 'obi John', last_login: '12/12/2024', image: 'string'} ] // {/*
// { // console.log("working"); // }} // /> //
*/} // {/*
//
// { // console.log("working"); // }} // /> //
//
// { // console.log("working"); // }} // /> //
//
// { // console.log("working"); // }} // /> //
//
*/}