import React from "react"; import { BsFillTrashFill, BsFillPencilFill } from "react-icons/bs"; import dataJSON from '../../public/data.json'; export const Table = ({ rows, deleteRow, editRow }) => { const fields=Object.keys(Object.values(dataJSON)[0]).filter((item:any)=>!(item.startsWith("delta_"))); return (
Bond | Paramter | Criterion | Value to give alert | Alert type | Actions |
---|---|---|---|---|---|
{row.id} | {row.para} | {row.criterion==0?"goes down by":row.criterion==1?"goes up by":row.criterion==2?"is smaller than":row.criterion==3?"is greater than":"is equal to"} | {row.value} | {row.type==0?'Info':row.type==1?"Warning":"Alert"} |
|