);
+type SeenIP = {
+ last_seen: string;
+ ip: string;
+ count: number;
+};
+
export default function App() {
- const [time, setTime] = useState
- The current time is: {time || 'N/A'}
-
- Your IP address is: {clientIp || 'N/A'}
-
+ {ip.ip}
+ |
+ + {ip.count} time{ip.count > 1 ? 's' : ''} + | +{ip.last_seen} | +