import React, { Fragment } from 'react'; import './options.scss'; export default function Options({ minValueLength, setMinValueLength, cookiesOnly, setCookiesOnly, cookiesOrOriginOnly, setCookiesOrOriginOnly, warningDataDialogAck, setWarningDataDialogAck, detailsVisibility, setDetailsVisibility, setStolenDataView, }: { minValueLength: number; setMinValueLength: (n: number) => void; cookiesOnly: boolean; setCookiesOnly: (b: boolean) => void; cookiesOrOriginOnly: boolean; setCookiesOrOriginOnly: (b: boolean) => void; warningDataDialogAck: boolean; setWarningDataDialogAck: (b: boolean) => void; detailsVisibility: boolean; setDetailsVisibility: (b: boolean) => void; setStolenDataView: (b: boolean) => void; }) { return (
Interfejs
{ setDetailsVisibility(e.target.checked); localStorage.setItem( 'detailsVisibility', e.target.checked as unknown as string ); }} />
{ setWarningDataDialogAck(e.target.checked); localStorage.setItem( 'warningDataDialogAck', e.target.checked as unknown as string ); }} />
Ustawienia zaawansowane
{ setMinValueLength(parseInt(e.target.value)); localStorage.setItem('minValueLength', e.target.value); }} />
setCookiesOnly(e.target.checked)} />
setCookiesOrOriginOnly(e.target.checked)} />
); }