Files
nahodka-front/src/components/desktop/DesktopIcons.jsx
2026-10-26 22:01:35 +03:00

90 lines
2.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Линейные иконки десктопной раскладки (единый стиль: 24×24, stroke 2).
const base = {
viewBox: "0 0 24 24",
fill: "none",
stroke: "currentColor",
strokeWidth: 2,
strokeLinecap: "round",
strokeLinejoin: "round",
"aria-hidden": true,
};
const Svg = ({ size = 20, children, ...rest }) => (
<svg width={size} height={size} {...base} {...rest}>{children}</svg>
);
export const DesktopIcons = {
Info: (p) => (
<Svg {...p}>
<circle cx="12" cy="12" r="10" />
<line x1="12" y1="16" x2="12" y2="11" />
<line x1="12" y1="8" x2="12.01" y2="8" />
</Svg>
),
Map: (p) => (
<Svg {...p}>
<path d="M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" />
<path d="M15 5.764v15" />
<path d="M9 3.236v15" />
</Svg>
),
Plus: (p) => (
<Svg strokeWidth={2.4} {...p}>
<path d="M12 5v14" />
<path d="M5 12h14" />
</Svg>
),
User: (p) => (
<Svg {...p}>
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" />
<circle cx="12" cy="7" r="4" />
</Svg>
),
Pin: (p) => (
<Svg {...p}>
<path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" />
<circle cx="12" cy="10" r="3" />
</Svg>
),
ArrowRight: (p) => (
<Svg {...p}>
<path d="M5 12h14" />
<path d="m12 5 7 7-7 7" />
</Svg>
),
ChevronRight: (p) => (
<Svg {...p}>
<path d="m9 18 6-6-6-6" />
</Svg>
),
Search: (p) => (
<Svg {...p}>
<circle cx="11" cy="11" r="8" />
<path d="m21 21-4.3-4.3" />
</Svg>
),
Message: (p) => (
<Svg {...p}>
<path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z" />
</Svg>
),
Close: (p) => (
<Svg {...p}>
<path d="M18 6 6 18" />
<path d="m6 6 12 12" />
</Svg>
),
Sparkles: (p) => (
<Svg {...p}>
<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" />
</Svg>
),
Image: (p) => (
<Svg {...p}>
<rect width="18" height="18" x="3" y="3" rx="2" />
<circle cx="9" cy="9" r="2" />
<path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />
</Svg>
),
};