import React from "react"; import { RequestCluster } from "../request-cluster"; import StolenDataCluster from "./stolen-data-cluster"; import { getshorthost } from "../util"; import { getMemory } from "../memory"; export function StolenData({ origin, minValueLength, refreshToken, refresh, cookiesOnly, cookiesOrOriginOnly, }: { origin: string; refreshToken: number; refresh: () => void; minValueLength: number; cookiesOnly: boolean; cookiesOrOriginOnly: boolean; }) { if (!origin) { return
; } const clusters = Object.values(getMemory().getClustersForOrigin(origin)).sort( RequestCluster.sortCompare ); return (
{" "}

{origin}

{clusters .filter((cluster) => !cookiesOnly || cluster.hasCookies()) .filter( (cluster) => !cookiesOrOriginOnly || cluster.hasCookies() || cluster.exposesOrigin() ) .map((cluster) => { return ( ); })}
); }