22 lines
1.2 KiB
TypeScript
22 lines
1.2 KiB
TypeScript
import { FC } from 'react';
|
|
|
|
interface IconBookmarkProps {
|
|
className?: string;
|
|
bookmark?: boolean;
|
|
}
|
|
|
|
const IconBookmark: FC<IconBookmarkProps> = ({ className, bookmark = true }) => {
|
|
return (
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" className={className}>
|
|
<path
|
|
d="M21 16.0909V11.0975C21 6.80891 21 4.6646 19.682 3.3323C18.364 2 16.2426 2 12 2C7.75736 2 5.63604 2 4.31802 3.3323C3 4.6646 3 6.80891 3 11.0975V16.0909C3 19.1875 3 20.7358 3.73411 21.4123C4.08421 21.735 4.52615 21.9377 4.99692 21.9915C5.98402 22.1045 7.13673 21.0849 9.44216 19.0458C10.4612 18.1445 10.9708 17.6938 11.5603 17.5751C11.8506 17.5166 12.1494 17.5166 12.4397 17.5751C13.0292 17.6938 13.5388 18.1445 14.5578 19.0458C16.8633 21.0849 18.016 22.1045 19.0031 21.9915C19.4739 21.9377 19.9158 21.735 20.2659 21.4123C21 20.7358 21 19.1875 21 16.0909Z"
|
|
stroke="currentColor"
|
|
strokeWidth="1.5"
|
|
/>
|
|
{bookmark && <path opacity="0.5" d="M15 6H9" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" />}
|
|
</svg>
|
|
);
|
|
};
|
|
|
|
export default IconBookmark;
|