@@ -14,11 +14,14 @@ import {
1414 Comment as CommentIcon ,
1515 InformationCircle as InformationCircleIcon ,
1616 Metadata as MetadataIcon ,
17+ MagicWand as MagicWandIcon ,
18+ DocGen as BPDocGenIcon ,
1719} from '@box/blueprint-web-assets/icons/Medium' ;
1820import {
1921 Comment as CommentIconFilled ,
2022 InformationCircle as InformationCircleIconFilled ,
2123 Metadata as MetadataIconFilled ,
24+ MagicWand as MagicWandIconFilled ,
2225} from '@box/blueprint-web-assets/icons/MediumFilled' ;
2326import { Size6 , Size5 , IconIconBlue } from '@box/blueprint-web-assets/tokens/tokens' ;
2427import { usePromptFocus } from '@box/box-ai-content-answers' ;
@@ -92,6 +95,28 @@ const MetadataIconWrapper = ({ isActive, isPreviewModernizationEnabled }: IconWr
9295 ) ;
9396} ;
9497
98+ const SkillsIconWrapper = ( { isActive, isPreviewModernizationEnabled } : IconWrapperProps ) => {
99+ if ( ! isPreviewModernizationEnabled ) {
100+ return < IconMagicWand className = "bcs-SidebarNav-icon" /> ;
101+ }
102+ return isActive ? (
103+ < MagicWandIconFilled { ...SIDEBAR_TAB_ICON_PROPS } color = { IconIconBlue } />
104+ ) : (
105+ < MagicWandIcon { ...SIDEBAR_TAB_ICON_PROPS } />
106+ ) ;
107+ } ;
108+
109+ const DocGenIconWrapper = ( { isActive, isPreviewModernizationEnabled } : IconWrapperProps ) => {
110+ if ( ! isPreviewModernizationEnabled ) {
111+ return < DocGenIcon className = "bcs-SidebarNav-icon" /> ;
112+ }
113+ return isActive ? (
114+ < BPDocGenIcon { ...SIDEBAR_TAB_ICON_PROPS } color = { IconIconBlue } />
115+ ) : (
116+ < BPDocGenIcon { ...SIDEBAR_TAB_ICON_PROPS } />
117+ ) ;
118+ } ;
119+
95120type Props = {
96121 additionalTabs ?: Array < AdditionalSidebarTab > ,
97122 elementId : string ,
@@ -223,7 +248,7 @@ const SidebarNav = ({
223248 sidebarView = { SIDEBAR_VIEW_SKILLS }
224249 tooltip = { intl . formatMessage ( messages . sidebarSkillsTitle ) }
225250 >
226- < IconMagicWand className = "bcs-SidebarNav-icon" />
251+ < SkillsIconWrapper isPreviewModernizationEnabled = { isPreviewModernizationEnabled } />
227252 </ SidebarNavButton >
228253 ) }
229254 { hasMetadata && (
@@ -250,7 +275,7 @@ const SidebarNav = ({
250275 sidebarView = { SIDEBAR_VIEW_DOCGEN }
251276 tooltip = { intl . formatMessage ( messages . sidebarDocGenTooltip ) }
252277 >
253- < DocGenIcon className = "bcs-SidebarNav-icon" />
278+ < DocGenIconWrapper isPreviewModernizationEnabled = { isPreviewModernizationEnabled } />
254279 </ SidebarNavButton >
255280 ) }
256281 </ SidebarNavTablist >
0 commit comments