@stratakit/bricks
Version:
Small, modular components for StrataKit
17 lines (16 loc) • 412 B
JavaScript
import { jsx } from "react/jsx-runtime";
import * as React from "react";
const GhostAlignerContext = React.createContext(void 0);
function GhostAligner(props) {
return /* @__PURE__ */ jsx(GhostAlignerContext.Provider, {
value: props.align,
children: props.children
});
}
function useGhostAlignment() {
return React.useContext(GhostAlignerContext);
}
export {
GhostAligner,
useGhostAlignment
};