import{MenuItem_default as e,TextField_default as t,jsx as n,useAppSelector as r}from"./index-hCP7Trns.js";import{RootTypeEnum as i}from"./root-type.enum-Bd2G-woW.js";const a=({value:a,onChange:o,rootTypeIdFilter:s})=>{let c=r(e=>{var t;return(t=e.common.lookupTables)?.rootStates}),l=Object.values(c??{});return n(t,{select:!0,variant:`outlined`,fullWidth:!0,label:`${s==i.LADLE?`Ladle`:`Tundish`} State`,value:a,onChange:o,children:l.filter(e=>e.rootTypeId===s).map(t=>n(e,{value:t.rootStateId,children:t.rootStateName},`rootStates/${t.rootStateId}`))})};export{a as RootStateSelector};
//# sourceMappingURL=RootStateSelector-D8GX8r5x.js.map