8 lines
459 B
TypeScript
8 lines
459 B
TypeScript
interface SvgProps {
|
|
color?: string;
|
|
rotation?: number;
|
|
}
|
|
|
|
export function Svg({ color, rotation }: SvgProps) {
|
|
const svgPath = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" ${rotation && 'transform="rotate(180 12 12)"'} fill="none" stroke="${color || "#cac9c9"}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/></svg>`;
|
|
}
|