import { getMemory } from '../memory'; import { RequestCluster } from '../request-cluster'; import StolenDataCluster from './stolen-data-cluster'; import './stolen-data.scss'; export function StolenData({ origin, minValueLength, eventCounts, cookiesOnly, cookiesOrOriginOnly, }: { origin: string; eventCounts: Record; minValueLength: number; cookiesOnly: boolean; cookiesOrOriginOnly: boolean; }) { if (!origin) { return (
Otwórz nową kartę z wybraną stroną internetową
); } const clusters = Object.values(getMemory().getClustersForOrigin(origin)) .sort(RequestCluster.sortCompare) .filter((cluster) => !cookiesOnly || cluster.hasCookies()) .filter( (cluster) => !cookiesOrOriginOnly || cluster.hasCookies() || cluster.exposesOrigin() ); return (
Domeny oraz przesłane informacje {clusters.map((cluster) => { return ( ); })}
); }