{"version":3,"file":"contextEnhance.mjs","names":["React","contextEnhance","context","setOnProp","props","other","value","useContext"],"sources":["../../../src/utils/enhances/contextEnhance.tsx"],"sourcesContent":["import React from 'react';\n\nfunction contextEnhance(context: React.Context<any>, setOnProp: string) {\n  return (props: any) => {\n    const { ...other } = props;\n    const value = React.useContext(context);\n    return {\n      ...other,\n      [setOnProp]: value,\n    };\n  };\n}\n\nexport default contextEnhance;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAcA,CAACC,OAA2B,EAAEC,SAAiB,EAAE;EACtE,OAAQC,KAAU,IAAK;IACrB,MAAM;MAAE,GAAGC;IAAM,CAAC,GAAGD,KAAK;IAC1B,MAAME,KAAK,GAAGN,KAAK,CAACO,UAAU,CAACL,OAAO,CAAC;IACvC,OAAO;MACL,GAAGG,KAAK;MACR,CAACF,SAAS,GAAGG;IACf,CAAC;EACH,CAAC;AACH;AAEA,eAAeL,cAAc","ignoreList":[]}