diff --git a/docs/.vitepress/theme/components/icons/IconDetailOverlay.vue b/docs/.vitepress/theme/components/icons/IconDetailOverlay.vue index 219e17488..1804388af 100644 --- a/docs/.vitepress/theme/components/icons/IconDetailOverlay.vue +++ b/docs/.vitepress/theme/components/icons/IconDetailOverlay.vue @@ -56,6 +56,29 @@ function onClose() { const CloseIcon = createLucideIcon('Close', x); const Expand = createLucideIcon('Expand', expand); + +import getStudioLink from '../../utils/getStudioLink'; + +const brushSparkles = [ + ['path', { d: 'M10 3H8' }], + ['path', { d: 'm11 10 3 3' }], + ['path', { d: 'M20 15v4' }], + ['path', { d: 'M22 17h-4' }], + ['path', { d: 'M4 5v4' }], + ['path', { d: 'M6 7H2' }], + ['path', { d: 'M6.5 21A3.5 3.5 0 103 17.5a2.62 2.62 0 01-.708 1.792A1 1 0 003 21z' }], + ['path', { d: 'M9 2v2' }], + ['path', { d: 'M9.969 17.031 21.378 5.624a1 1 0 00-3.002-3.002L6.967 14.031' }], +]; + +const BrushSparklesIcon = createLucideIcon('BrushSparkels', brushSparkles); + +function openStudio() { + if (typeof window !== 'undefined' && icon.value) { + const link = getStudioLink(icon.value.name, icon.value.iconNode, 'icon-detail-overlay'); + window.open(link, '_blank'); + } +}