import {useId} from 'react'; import data from './data'; const checked = JSON.parse(window.localStorage.getItem("grantabriwark_checked") ?? "[]"), CheckLine = (params: {checked: boolean, num: number, line: string}) => { const id = useId(); return (
  • {checked[params.num] = !checked[params.num]; window.localStorage.setItem("grantabriwark_checked", JSON.stringify(checked))}} />
  • ); }, Checkbox = () => { return (
    Please check the lines you like:
    ); }; export default Checkbox;