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>
8 lines
505 B
Text
8 lines
505 B
Text
import React from 'react';
|
|
import type { BaseContext, NextComponentType, NextPageContext } from '../shared/lib/utils';
|
|
import type { NextRouter } from './router';
|
|
export type WithRouterProps = {
|
|
router: NextRouter;
|
|
};
|
|
export type ExcludeRouterProps<P> = Pick<P, Exclude<keyof P, keyof WithRouterProps>>;
|
|
export default function withRouter<P extends WithRouterProps, C extends BaseContext = NextPageContext>(ComposedComponent: NextComponentType<C, any, P>): React.ComponentType<ExcludeRouterProps<P>>;
|