import { useAlertHitContext } from "../../context/AlertHitContext"; import Card from "../UI/Card"; import CardHeader from "../UI/CardHeader"; import AlertItem from "./AlertItem"; const HistoryList = () => { const { state } = useAlertHitContext(); console.log(state); return (
{state?.alertList?.length >= 0 ? ( state?.alertList?.map((alertItem, index) => ( )) ) : (

No Search results

)}
); }; export default HistoryList;