@@ -20,7 +20,13 @@ import { useInstanceId } from '@wordpress/compose';
2020import { useDispatch } from '@wordpress/data' ;
2121import { useState } from '@wordpress/element' ;
2222import { __ , sprintf } from '@wordpress/i18n' ;
23- import { Icon , moreHorizontal } from '@wordpress/icons' ;
23+ import {
24+ Icon ,
25+ header ,
26+ footer ,
27+ symbolFilled ,
28+ moreHorizontal ,
29+ } from '@wordpress/icons' ;
2430import { store as noticesStore } from '@wordpress/notices' ;
2531import { store as reusableBlocksStore } from '@wordpress/reusable-blocks' ;
2632import { DELETE , BACKSPACE } from '@wordpress/keycodes' ;
@@ -89,6 +95,15 @@ export default function GridItem( { categoryId, composite, icon, item } ) {
8995 ariaDescription = item . description ;
9096 }
9197
98+ let itemIcon = icon ;
99+ if ( categoryId === 'header' ) {
100+ itemIcon = header ;
101+ } else if ( categoryId === 'footer' ) {
102+ itemIcon = footer ;
103+ } else if ( categoryId === 'uncategorized' ) {
104+ itemIcon = symbolFilled ;
105+ }
106+
92107 return (
93108 < >
94109 < div className = { patternClassNames } >
@@ -127,7 +142,7 @@ export default function GridItem( { categoryId, composite, icon, item } ) {
127142 spacing = { 3 }
128143 className = "edit-site-library__pattern-title"
129144 >
130- { icon && < Icon icon = { icon } /> }
145+ { icon && < Icon icon = { itemIcon } /> }
131146 < Heading level = { 5 } > { item . title } </ Heading >
132147 </ HStack >
133148 { item . type === USER_PATTERNS && (
0 commit comments