23 lines
502 B
TypeScript
23 lines
502 B
TypeScript
import ListIcon from "../icons/ListIcon";
|
|
|
|
type ListButtonProps = {
|
|
className?: string;
|
|
onClick?: () => void;
|
|
};
|
|
|
|
const ListButton = ({ className, onClick }: ListButtonProps) => {
|
|
return (
|
|
<button
|
|
onClick={onClick}
|
|
className={`${
|
|
className ? className : ""
|
|
} items-center select-none cursor-pointer pl-2 pr-4 py-[6px] bg-[#EFE4DE] rounded-[32px] flex w-fit font-medium absolute`}
|
|
>
|
|
<ListIcon />
|
|
List
|
|
</button>
|
|
);
|
|
};
|
|
|
|
export default ListButton;
|