@@ -53,6 +53,7 @@ interface IActionsHeader<T extends Object> {
5353 getDownloadType ?: ( option : string , checkedRows : T [ ] | string ) => void
5454 customHeaderAction ?( option : T [ ] | string ) : JSX . Element
5555 handleDeleteAll ?: ( ) => void
56+ staticAction ?( ) : JSX . Element
5657}
5758const MainHeader = < T extends Object > ( {
5859 columnsConfigStructure,
@@ -85,6 +86,7 @@ const MainHeader = <T extends Object>({
8586 getDownloadType,
8687 customHeaderAction,
8788 handleDeleteAll,
89+ staticAction,
8890} : IActionsHeader < T > ) => {
8991 return (
9092 < div className = 'G-justify-start G-table-actions-header' >
@@ -118,7 +120,9 @@ const MainHeader = <T extends Object>({
118120 { /* {selectedType === CheckedItems.SELECTED_ALL || checkedRows.length
119121 ? customHeaderAction?.(checkedRows)
120122 : null} */ }
121- { customHeaderAction ?.( checkedRows ) }
123+ { selectedType === CheckedItems . SELECTED_ALL || checkedRows . length
124+ ? customHeaderAction ?.( checkedRows )
125+ : null }
122126 { /* {handleDeleteAll && data.length > 1 && (
123127 <div className="G-flex G-delete" onClick={handleDeleteAll}>
124128 <div className="G-center G-delete-icon">
@@ -130,16 +134,26 @@ const MainHeader = <T extends Object>({
130134 </ div >
131135 </ >
132136 ) : null }
133- { draggableColumns ? (
134- < ColumnsCustomizer
135- columnsConfigStructure = { columnsConfigStructure }
136- setColumnsConfigStructure = { setColumnsConfigStructure }
137- columnsHeaderStructure = { columnsHeaderStructure }
138- setColumnHeaderStructure = { setColumnHeaderStructure }
139- translations = { translations }
140- storeStructure = { storeStructure }
141- />
142- ) : null }
137+ < div
138+ style = { {
139+ display : 'flex' ,
140+ alignItems : 'center' ,
141+ gap : '32px' ,
142+ flex : '1 1 auto' ,
143+ } }
144+ >
145+ { draggableColumns ? (
146+ < ColumnsCustomizer
147+ columnsConfigStructure = { columnsConfigStructure }
148+ setColumnsConfigStructure = { setColumnsConfigStructure }
149+ columnsHeaderStructure = { columnsHeaderStructure }
150+ setColumnHeaderStructure = { setColumnHeaderStructure }
151+ translations = { translations }
152+ storeStructure = { storeStructure }
153+ />
154+ ) : null }
155+ { staticAction ?.( ) }
156+ </ div >
143157
144158 { hasFilters ? (
145159 < Filter
0 commit comments