2021-11-07 09:17:19 +01:00
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
export default function Options({
|
|
|
|
minValueLength,
|
|
|
|
setMinValueLength,
|
|
|
|
cookiesOnly,
|
|
|
|
setCookiesOnly,
|
2021-11-07 19:27:03 +01:00
|
|
|
cookiesOrOriginOnly,
|
|
|
|
setCookiesOrOriginOnly,
|
2021-11-07 19:30:54 +01:00
|
|
|
}: {
|
|
|
|
minValueLength: number;
|
|
|
|
setMinValueLength: (n: number) => void;
|
|
|
|
cookiesOnly: boolean;
|
|
|
|
setCookiesOnly: (b: boolean) => void;
|
|
|
|
cookiesOrOriginOnly: boolean;
|
|
|
|
setCookiesOrOriginOnly: (b: boolean) => void;
|
2021-11-07 09:17:19 +01:00
|
|
|
}) {
|
|
|
|
return (
|
|
|
|
<fieldset>
|
|
|
|
<h3>Zaawansowane ustawienia</h3>
|
|
|
|
<label htmlFor="minValueLength">
|
|
|
|
Pokazuj tylko wartości o długości co najmniej{" "}
|
|
|
|
</label>
|
|
|
|
<input
|
|
|
|
type="number"
|
|
|
|
id="minValueLength"
|
|
|
|
value={minValueLength}
|
|
|
|
onChange={(e) => setMinValueLength(parseInt(e.target.value))}
|
|
|
|
/>
|
|
|
|
<br />
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
id="cookiesOnly"
|
2021-11-07 19:30:54 +01:00
|
|
|
checked={cookiesOnly}
|
2021-11-07 09:17:19 +01:00
|
|
|
onChange={(e) => setCookiesOnly(e.target.checked)}
|
|
|
|
/>
|
|
|
|
<label htmlFor="cookiesOnly">Pokazuj tylko dane z cookiesów</label>
|
2021-11-07 19:27:03 +01:00
|
|
|
<br />
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
id="cookiesOrOriginOnly"
|
2021-11-07 19:30:54 +01:00
|
|
|
checked={cookiesOrOriginOnly}
|
2021-11-07 19:27:03 +01:00
|
|
|
onChange={(e) => setCookiesOrOriginOnly(e.target.checked)}
|
|
|
|
/>
|
|
|
|
<label htmlFor="cookiesOrOriginOnly">
|
|
|
|
Pokazuj tylko dane z cookiesów lub z częścią historii przeglądania
|
|
|
|
</label>
|
2021-11-07 09:17:19 +01:00
|
|
|
</fieldset>
|
|
|
|
);
|
|
|
|
}
|