109 lines
3.6 KiB
TypeScript
109 lines
3.6 KiB
TypeScript
// Small inline icons (stroke style, inherit currentColor).
|
|
const base = { width: 20, height: 20, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 1.8, strokeLinecap: 'round', strokeLinejoin: 'round' } as const
|
|
|
|
export const ComposeIcon = () => (
|
|
<svg {...base}>
|
|
<path d="M12 20h9" />
|
|
<path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z" />
|
|
</svg>
|
|
)
|
|
export const SearchIcon = ({ size = 20 }: { size?: number }) => (
|
|
<svg {...base} width={size} height={size}>
|
|
<circle cx="11" cy="11" r="7" />
|
|
<path d="m20 20-3.5-3.5" />
|
|
</svg>
|
|
)
|
|
export const GearIcon = () => (
|
|
<svg {...base}>
|
|
<circle cx="12" cy="12" r="3" />
|
|
<path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z" />
|
|
</svg>
|
|
)
|
|
export const CloseIcon = ({ size = 18 }: { size?: number }) => (
|
|
<svg {...base} width={size} height={size}>
|
|
<path d="M18 6 6 18M6 6l12 12" />
|
|
</svg>
|
|
)
|
|
export const BackIcon = () => (
|
|
<svg {...base}>
|
|
<path d="M15 18l-6-6 6-6" />
|
|
</svg>
|
|
)
|
|
export const LeftIcon = ({ size = 28 }: { size?: number }) => (
|
|
<svg {...base} width={size} height={size}>
|
|
<path d="m15 18-6-6 6-6" />
|
|
</svg>
|
|
)
|
|
export const RightIcon = ({ size = 28 }: { size?: number }) => (
|
|
<svg {...base} width={size} height={size}>
|
|
<path d="m9 18 6-6-6-6" />
|
|
</svg>
|
|
)
|
|
export const UpIcon = () => (
|
|
<svg {...base} width={18} height={18}>
|
|
<path d="m18 15-6-6-6 6" />
|
|
</svg>
|
|
)
|
|
export const DownIcon = () => (
|
|
<svg {...base} width={18} height={18}>
|
|
<path d="m6 9 6 6 6-6" />
|
|
</svg>
|
|
)
|
|
export const SendIcon = () => (
|
|
<svg width={20} height={20} viewBox="0 0 24 24" fill="currentColor">
|
|
<path d="M3.4 20.4 21 12 3.4 3.6 3.4 10l12.6 2-12.6 2z" />
|
|
</svg>
|
|
)
|
|
export const ClockIcon = () => (
|
|
<svg {...base} width={12} height={12} strokeWidth={2.2}>
|
|
<circle cx="12" cy="12" r="9" />
|
|
<path d="M12 7v5l3 2" />
|
|
</svg>
|
|
)
|
|
export const AlertIcon = () => (
|
|
<svg {...base} width={14} height={14} strokeWidth={2.2}>
|
|
<circle cx="12" cy="12" r="9" />
|
|
<path d="M12 8v5M12 16h.01" />
|
|
</svg>
|
|
)
|
|
export const AttachIcon = () => (
|
|
<svg {...base}>
|
|
<path d="m21 11.5-8.6 8.6a5.5 5.5 0 0 1-7.8-7.8l8.6-8.6a3.7 3.7 0 0 1 5.2 5.2l-8.6 8.6a1.8 1.8 0 0 1-2.6-2.6l8-8" />
|
|
</svg>
|
|
)
|
|
export const DownloadIcon = () => (
|
|
<svg {...base}>
|
|
<path d="M12 3v12m-5-5 5 5 5-5M4 20h16" />
|
|
</svg>
|
|
)
|
|
export const RefreshIcon = () => (
|
|
<svg {...base}>
|
|
<path d="M20 11a8 8 0 0 0-14.3-4.9L4 8" />
|
|
<path d="M4 3v5h5" />
|
|
<path d="M4 13a8 8 0 0 0 14.3 4.9L20 16" />
|
|
<path d="M20 21v-5h-5" />
|
|
</svg>
|
|
)
|
|
export const ArchiveIcon = () => (
|
|
<svg {...base}>
|
|
<rect x="3" y="4" width="18" height="5" rx="1" />
|
|
<path d="M5 9v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9M10 13h4" />
|
|
</svg>
|
|
)
|
|
// Three outlined bubbles of different sizes: the unread view.
|
|
export const BubblesIcon = () => (
|
|
<svg {...base}>
|
|
<circle cx="8.5" cy="14.5" r="5.5" />
|
|
<circle cx="17" cy="6" r="3" />
|
|
<circle cx="20" cy="17" r="2" />
|
|
</svg>
|
|
)
|
|
export const GroupIcon = () => (
|
|
<svg {...base}>
|
|
<circle cx="9" cy="8" r="3.5" />
|
|
<path d="M2.5 20a6.5 6.5 0 0 1 13 0" />
|
|
<path d="M16 4.6a3.5 3.5 0 0 1 0 6.8" />
|
|
<path d="M18.5 14.2a6.5 6.5 0 0 1 3 5.8" />
|
|
</svg>
|
|
)
|