11import { StyleVariables } from "helpers/Constants" ;
2- import { dbTrim , c , getLabelHeader } from "helpers/StylesHelper" ;
2+ import { dbTrim , c } from "helpers/StylesHelper" ;
33import AdjustmentsIcon from "components/img/AdjustmentsIcon" ;
44import React , { FocusEventHandler , useState } from "react" ;
55import Popper from "@mui/material/Popper" ;
@@ -18,15 +18,18 @@ import { dynamic_t, t } from "lang/helpers";
1818const HeaderMenu = ( headerMenuProps : HeaderMenuProps ) => {
1919 const { table, column } = headerMenuProps . headerProps ;
2020
21- const [ columnsInfo , columnActions ] = table . options . meta . tableState . columns (
22- ( state ) => [ state . info , state . actions ]
23- ) ;
24- const dataActions = table . options . meta . tableState . data (
25- ( state ) => state . actions
26- ) ;
27- const configInfo = table . options . meta . tableState . configState (
28- ( state ) => state . info
29- ) ;
21+ const { tableState } = table . options . meta ;
22+
23+ const [ columnsInfo , columnActions ] = tableState . columns ( ( state ) => [
24+ state . info ,
25+ state . actions ,
26+ ] ) ;
27+
28+ const dataActions = tableState . data ( ( state ) => state . actions ) ;
29+
30+ const configInfo = tableState . configState ( ( state ) => state . info ) ;
31+
32+ const automationInfo = tableState . automations ( ( state ) => state . info ) ;
3033
3134 /** Header props */
3235 const { propertyIcon, menuEl, setMenuEl, labelState, setLabelState } =
@@ -238,6 +241,7 @@ const HeaderMenu = (headerMenuProps: HeaderMenuProps) => {
238241 actions : columnActions ,
239242 } ,
240243 configState : { info : configInfo } ,
244+ automationState : { info : automationInfo } ,
241245 view : table . options . meta . view ,
242246 tableColumn : column . columnDef as TableColumn ,
243247 } ) . open ( ) ;
0 commit comments