react-floating-profile
Version:
React component to display your github profile <p align="left"> <a href="https://www.npmjs.com/package/react-floating-profile"><img src="https://flat.badgen.net/npm/v/react-floating-profile" alt="react-floating-profile version" /></a> <a href="http
18 lines (17 loc) • 642 B
TypeScript
import { GitHubUser, RepoItemType } from "../types.js";
import { ReactNode } from "react";
interface ProfileContextType {
isOpen: boolean;
setIsOpen: (value: boolean) => void;
userObj: GitHubUser | null;
setUserObj: (value: GitHubUser | null) => void;
pinnedRepoItemArr: RepoItemType[] | [];
setPinnedRepoItemArr: (data: RepoItemType[] | []) => void;
accessToken: string;
setAccessToken: (value: string) => void;
}
export declare function ProfileProvider({ children }: {
children: ReactNode;
}): import("react/jsx-runtime").JSX.Element;
export declare function useProfile(): ProfileContextType;
export {};