Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
591 B
Text
19 lines
591 B
Text
// packages/react/direction/src/Direction.tsx
|
|
import * as React from "react";
|
|
import { jsx } from "react/jsx-runtime";
|
|
var DirectionContext = React.createContext(void 0);
|
|
var DirectionProvider = (props) => {
|
|
const { dir, children } = props;
|
|
return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });
|
|
};
|
|
function useDirection(localDir) {
|
|
const globalDir = React.useContext(DirectionContext);
|
|
return localDir || globalDir || "ltr";
|
|
}
|
|
var Provider = DirectionProvider;
|
|
export {
|
|
DirectionProvider,
|
|
Provider,
|
|
useDirection
|
|
};
|
|
//# sourceMappingURL=index.mjs.map
|