leumas-private-shared
Version:
Private React JSX Package For Leumas Shared Components, Headers, Footers, Asides, Login Pages, API Key Manager and much more. Styles and everything reusable to avoid DRY code across all of our subdomains
20 lines (17 loc) • 654 B
JSX
import React from 'react';
const HistoryPopup = ({ history, onClose }) => {
return (
<div className="fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center">
<div className="bg-white p-4 rounded-lg w-full max-w-lg">
<button onClick={onClose} className="float-right">Close</button>
<h2>History</h2>
<ul>
{history.map((entry, index) => (
<li key={index}>{entry.site} - {entry.ip}</li>
))}
</ul>
</div>
</div>
);
};
export default HistoryPopup;