+ // return (
+ //
+ //
+ //
+ //
+ // {
+ // Digit.Utils.setPrivacyObject({});
+ // setPrivacy({});
+ // },
+ // getPrivacy: () => {
+ // const privacyObj = Digit.Utils.getPrivacyObject();
+ // setPrivacy(privacyObj);
+ // return privacyObj;
+ // },
+ // /* Descoped method to update privacy object */
+ // updatePrivacyDescoped: (_data) => {
+ // const privacyObj = Digit.Utils.getAllPrivacyObject();
+ // const newObj = { ...privacyObj, [window.location.pathname]: _data };
+ // Digit.Utils.setPrivacyObject({ ...newObj });
+ // setPrivacy(privacyObj?.[window.location.pathname] || {});
+ // },
+ // /**
+ // * Main Method to update the privacy object anywhere in the application
+ // *
+ // * @author jagankumar-egov
+ // *
+ // * Feature :: Privacy
+ // *
+ // * @example
+ // * const { privacy , updatePrivacy } = Digit.Hooks.usePrivacyContext();
+ // */
+ // updatePrivacy: (uuid, fieldName) => {
+ // setPrivacy(Digit.Utils.updatePrivacy(uuid, fieldName) || {});
+ // },
+ // }}
+ // >
+ //
+ // {/* Core Module Dummy
*/}
+ // {/* */}
+ //
+ //
+ //
+ //
+ //
+ // );
+
+
- {
- Digit.Utils.setPrivacyObject({});
- setPrivacy({});
- },
- getPrivacy: () => {
- const privacyObj = Digit.Utils.getPrivacyObject();
- setPrivacy(privacyObj);
- return privacyObj;
- },
- /* Descoped method to update privacy object */
- updatePrivacyDescoped: (_data) => {
- const privacyObj = Digit.Utils.getAllPrivacyObject();
- const newObj = { ...privacyObj, [window.location.pathname]: _data };
- Digit.Utils.setPrivacyObject({ ...newObj });
- setPrivacy(privacyObj?.[window.location.pathname] || {});
- },
- /**
- * Main Method to update the privacy object anywhere in the application
- *
- * @author jagankumar-egov
- *
- * Feature :: Privacy
- *
- * @example
- * const { privacy , updatePrivacy } = Digit.Hooks.usePrivacyContext();
- */
- updatePrivacy: (uuid, fieldName) => {
- setPrivacy(Digit.Utils.updatePrivacy(uuid, fieldName) || {});
- },
- }}
- >
- {/* */}
- Core Module Dummy
+
+ {/* Core Module Dummy
*/}
{/* */}
-
- );
};
const componentsToRegister = {