1 line
1.2 KiB
JSON
1 line
1.2 KiB
JSON
{"ast":null,"code":"/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","map":{"version":3,"names":["resolveComponentProps","componentProps","ownerState","slotState"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/base/utils/resolveComponentProps.js"],"sourcesContent":["/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAO,SAASA,qBAAqBA,CAACC,cAAc,EAAEC,UAAU,EAAEC,SAAS,EAAE;EAC3E,IAAI,OAAOF,cAAc,KAAK,UAAU,EAAE;IACxC,OAAOA,cAAc,CAACC,UAAU,EAAEC,SAAS,CAAC;EAC9C;EACA,OAAOF,cAAc;AACvB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |