import React from 'react'; import './options.scss'; export default function Options({ minValueLength, setMinValueLength, cookiesOnly, setCookiesOnly, cookiesOrOriginOnly, setCookiesOrOriginOnly, warningDataDialogAck, setWarningDataDialogAck, logoVisibility, setLogoVisibility, }: { minValueLength: number; setMinValueLength: (n: number) => void; cookiesOnly: boolean; setCookiesOnly: (b: boolean) => void; cookiesOrOriginOnly: boolean; setCookiesOrOriginOnly: (b: boolean) => void; warningDataDialogAck: boolean; setWarningDataDialogAck: (b: boolean) => void; logoVisibility: boolean; setLogoVisibility: (b: boolean) => void; }) { return (
Interfejs
{ setLogoVisibility(e.target.checked); localStorage.setItem( 'logoVisibility', 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)) } />
setCookiesOnly(e.target.checked)} />
setCookiesOrOriginOnly(e.target.checked) } />
); }