30 lines
954 B
JavaScript
30 lines
954 B
JavaScript
/**
|
|
* eBook Icon (Open book style)
|
|
* @param {Object} props - Icon properties
|
|
* @param {number} props.size - Icon size (default: 20)
|
|
* @param {string} props.color - Icon color (default: currentColor)
|
|
* @param {number} props.strokeWidth - Stroke width (default: 2)
|
|
* @returns {string} SVG string
|
|
*/
|
|
export function ebookIcon({
|
|
size = 20,
|
|
color = "currentColor",
|
|
strokeWidth = 2,
|
|
} = {}) {
|
|
return `
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="${size}"
|
|
height="${size}"
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
stroke="${color}"
|
|
stroke-width="${strokeWidth}"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
>
|
|
<path d="M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"/>
|
|
</svg>
|
|
`;
|
|
}
|