import { useState } from "react"; import { ISort } from "../../types/sortType"; import CheckIcon from "../icons/CheckIcon"; import ChevronDownIcon from "../icons/ChevronDownIcon"; interface SortButtonProps { sortList: ISort[]; onClick: (id: string) => void; } const SortButton = ({ sortList, onClick }: SortButtonProps) => { const [isSelected, setIsSelected] = useState(false); const handleOnClick = () => { setIsSelected((prev) => !prev); }; return (
{sortList.map((sort) => ( ))}
); }; export default SortButton;