****************** Dynamic Custom Components For Admin Penal ============= ======== Input Fields =========== ========= Button ============ { // Use onClick Event alert("hello"); }} style={``} // Custom Style disabled={``} // true false /> ========= Navigator ============ {With Submenu} { // Use onClick Event alert("hello"); }} > {Without Submenu} ========= Table ============ { setStart(pageStart); setEnd(pageEnd); }} total={totalUser} // Date Analytic datePicker={(start, end) => { // Pass Redux API Props props.getPurchaseHistory(start, end); }} /> const columns = [ // Get Custom Value In Table { Header: "No", width: "20px", Cell: ({ row }) => {parseInt(row.id) + 1}, }, // Normal Table { Header: "Name", accessor: "name" }, { Header: "Coin", accessor: "coin" }, // Add Button And Other Data Show In Table { Header: "Block", accessor: "isBlock", Cell: ({ row }) => ( Get Real Value (row.original.{your-value-name}) ), }, ]; ========= Title ============ ========= ToggleSwitch ============ handleClick(row.original._id)} // Toggle Switch /> ======================== Page Wise Components ============================== =========== DashboardBox ================= {Object.keys(data).map((oldKey) => { const newKey = dashboard[oldKey]; const title = data[oldKey].title; const icon = data[oldKey].icon; })} const keyMap = { // Fields // Title // Icon : { title: "Total User", icon: "fa-solid fa-users" }, liveUser: { title: "Live User", icon: "fa-solid fa-users" }, }; =========== Setting ================= { // OnClick Functionality handleClick("app"); }, }} > {... Your Code}