iwelp
Version:
A feedback component library
22 lines (21 loc) • 748 B
TypeScript
/**
* useWelp hook to consume the welp context
* @returns {object} - the welp context
*/
export function useWelp(): object;
export default WelpProvider;
/**
* WelpProvider component to provide the welp context to the application
* @param {string} scopeId - the scope id
* @param {React.ReactElement} children - the children components
* @returns {React.ReactElement} - WelpProvider component
*/
declare function WelpProvider({ scopeId, children }: string): React.ReactElement;
declare namespace WelpProvider {
namespace propTypes {
let scopeId: PropTypes.Validator<string>;
let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
}
let displayName: string;
}
import PropTypes from "prop-types";