rentgen/components/report-window/problems/unlawful-data.tsx

37 lines
1.2 KiB
TypeScript
Raw Normal View History

import { RequestCluster } from '../../../request-cluster';
2022-02-10 21:52:40 +01:00
import { ExplainerKey } from '../explainers';
import { ParsedAnswers, ParsedHostAnswers } from '../parse-answers';
import { v } from '../verbs';
import { Problem } from './problem';
type UnlawfulDataClassification = 'no_purpose';
export function classifyUnlawfulData(
2022-04-24 22:11:33 +02:00
hostAnswers: ParsedHostAnswers,
cluster: RequestCluster
2022-02-10 21:52:40 +01:00
): UnlawfulDataClassification {
2022-04-24 22:11:33 +02:00
if (hostAnswers.present == 'not_mentioned' && hostAnswers.was_processing_necessary == 'no') {
return 'no_purpose';
}
2022-02-10 21:52:40 +01:00
}
export class UnlawfulData extends Problem {
2022-04-24 22:11:33 +02:00
static qualifies(answers: ParsedAnswers, clusters: RequestCluster[]): boolean {}
getEmailContent() {
const _ = (key: string) => v(key, this.answers.zaimek);
return (
<>
<h2>Przetwarzanie danych osobowych bez ważnej podsawy prawnej</h2>
<p>
{_('Moje')} dane osobowe zostały ujawnione podmiotom, które właścicielami
domen:
</p>
{this.getRangeDescription()}
</>
);
}
getNecessaryExplainers() {
return [] as ExplainerKey[];
}
2022-02-10 21:52:40 +01:00
}