35 lines
1.3 KiB
TypeScript
35 lines
1.3 KiB
TypeScript
// Adapted from dsh-mnemon memory-icon.tsx (MIT), see vendor/dsh-mnemon/LICENSE.
|
|
import * as React from 'react'
|
|
|
|
const BRAIN_ICON_PATHS = [
|
|
'M8 3.4C8 2.2 7.2 1.5 6.2 1.5C5.2 1.5 4.4 2.2 4.3 3.2C2.8 3.2 1.9 4.4 2.2 5.8C.9 6.8 1 8.8 2.4 9.6C2.1 11 3.1 12.2 4.5 12.2C4.8 14.7 8 14.9 8 12.3C8 14.9 11.2 14.7 11.5 12.2C12.9 12.2 13.9 11 13.6 9.6C15 8.8 15.1 6.8 13.8 5.8C14.1 4.4 13.2 3.2 11.7 3.2C11.6 2.2 10.8 1.5 9.8 1.5C8.8 1.5 8 2.2 8 3.4Z',
|
|
'M8 3.4v8.9',
|
|
'M4.3 3.2C4.2 4.1 4.7 4.8 5.5 5.1M11.7 3.2C11.8 4.1 11.3 4.8 10.5 5.1',
|
|
'M2.4 9.6C3.2 10 4.4 9.7 4.8 8.8M13.6 9.6C12.8 10 11.6 9.7 11.2 8.8',
|
|
'M4.5 12.2C4.4 11.2 4.9 10.5 5.7 10.2M11.5 12.2C11.6 11.2 11.1 10.5 10.3 10.2',
|
|
] as const
|
|
|
|
const h = React.createElement
|
|
|
|
export function BrainIcon({ size = 18, ...marker }: { size?: number } & Record<string, unknown>): any {
|
|
return h(
|
|
'svg',
|
|
{
|
|
...marker,
|
|
'data-dsh-panel-entry': 'dsh-brain',
|
|
'data-dsh-plugin': 'dsh-brain',
|
|
'data-dsh-part': 'sidebar-icon',
|
|
'aria-hidden': 'true',
|
|
viewBox: '0 0 16 16',
|
|
width: size,
|
|
height: size,
|
|
fill: 'none',
|
|
stroke: 'currentColor',
|
|
strokeWidth: '1',
|
|
strokeLinecap: 'round',
|
|
strokeLinejoin: 'round',
|
|
},
|
|
BRAIN_ICON_PATHS.map((path) => h('path', { key: path, d: path })),
|
|
)
|
|
}
|