@armada-inc/gatsby-wordpress-theme-libre
Version:
A Gatsby theme plugin for creating blogs from headless WordPress CMS.
16 lines (12 loc) • 374 B
JSX
import React, { createContext } from "react";
export const ArmadaFormsContext = createContext({
client: undefined
});
ArmadaFormsContext.displayName = "Armada Forms";
export const ArmadaFormsProvider = ({ client, children }) => {
return (
<ArmadaFormsContext.Provider value={{ client }}>
{children}
</ArmadaFormsContext.Provider>
);
};