propro-common-components 0.0.1 → 0.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ declare function getCookie(cname: string): string | undefined;
2
+ export default getCookie;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ };
5
+ declare const AppHOC: React.FC<Props>;
6
+ export default AppHOC;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ type StateType = {
3
+ loading: boolean;
4
+ };
5
+ interface Props {
6
+ children: React.ReactNode;
7
+ baseURL: string;
8
+ }
9
+ export declare const AppContext: React.Context<{
10
+ state: StateType;
11
+ dispatch: React.Dispatch<{
12
+ type: string;
13
+ payload: unknown;
14
+ }>;
15
+ }>;
16
+ export declare const AppProvider: React.FC<Props>;
17
+ export {};
@@ -0,0 +1,11 @@
1
+ type useRequestType = {
2
+ method: "GET" | "POST" | "PUT" | "DELETE";
3
+ endpoint: string;
4
+ data?: object;
5
+ };
6
+ declare const useRequests: ({ method, endpoint, data }: useRequestType) => {
7
+ method: "GET" | "POST" | "PUT" | "DELETE";
8
+ endpoint: string;
9
+ data: object | undefined;
10
+ };
11
+ export default useRequests;