front_gestalt/components/filterCheckbox.tsx
2025-01-09 00:40:28 +03:00

25 lines
764 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import React, { useState } from 'react';
const FilterCheckbox: React.FC = () => {
const [active, setActive] = useState(false);
const handleCheckboxChange = (event: React.ChangeEvent<HTMLInputElement>) => {
setActive(event.target.checked);
};
return (
<label className="flex items-center text-[14px] text-lightGrey gap-[12px]">
<input
className="w-[16px] h-[16px] border-white"
type="checkbox"
checked={active}
onChange={handleCheckboxChange}
/>
только мероприятия Донецкого сообщества
</label>
);
}
export default FilterCheckbox;