import React from "react"; import memory from "./memory"; import { Sources } from "./request-cluster"; export default function StolenDataRow({ origin, shorthost, minValueLength, cookiesOnly, }: { origin: string; shorthost: string; refreshToken: number; minValueLength: number; cookiesOnly: boolean; }) { const cluster = memory.getClustersForOrigin(origin)[shorthost]; const icons: Record = { cookie: "🍪", pathname: "🛣", queryparams: "🅿", header: "H", }; return (

{cluster.id} {cluster.hasCookies() ? "🍪" : ""} x {cluster.requests.length}{" "} memory.removeCookiesFor(origin, shorthost)} > Wyczyść cookiesy

{cluster .getStolenData({ minValueLength, cookiesOnly }) .map((entry) => ( ))}
{entry.getNames().join(",")} {entry.getSources().map((source) => icons[source])} {entry.getValues()[0]}
); }