Rocky_Mountain_Vending/.pnpm-store/v10/files/bc/87b3475881ca7be71d83c1444d55435768ef8df5a18608ff47d93f850ab08d82e991426a4d86a52dd2c35ea0f070998a60b5994ce0bc224ab9fc2f58ac5220
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

20 lines
No EOL
776 B
Text

import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { useRouter } from './router';
export default function withRouter(ComposedComponent) {
function WithRouterWrapper(props) {
return /*#__PURE__*/ _jsx(ComposedComponent, {
router: useRouter(),
...props
});
}
WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps;
WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps;
if (process.env.NODE_ENV !== 'production') {
const name = ComposedComponent.displayName || ComposedComponent.name || 'Unknown';
WithRouterWrapper.displayName = `withRouter(${name})`;
}
return WithRouterWrapper;
}
//# sourceMappingURL=with-router.js.map