Rocky_Mountain_Vending/.pnpm-store/v10/files/40/9c9e96548c377136c170b1327458c9e5661f25f96e09740989fff558bf650401d42a16ed9612a37ec18baee932e60a9b1bbe0d6dc7b80f94ef99e04d6430a2
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

35 lines
965 B
Text

interface Options {
enterDelay?: number;
exitDelay?: number;
onUnmount?: () => void;
}
/**
* Useful to perform CSS transitions on React components without
* using libraries like Framer Motion. This hook will defer the
* unmount of a React component until after a delay.
*
* @param active - Whether the component should be rendered
* @param options - Options for the delayed render
* @param options.enterDelay - Delay before rendering the component
* @param options.exitDelay - Delay before unmounting the component
*
* const Modal = ({ active }) => {
* const { mounted, rendered } = useDelayedRender(active, {
* exitDelay: 2000,
* })
*
* if (!mounted) return null
*
* return (
* <Portal>
* <div className={rendered ? 'modal visible' : 'modal'}>...</div>
* </Portal>
* )
*}
*
* */
export declare function useDelayedRender(active?: boolean, options?: Options): {
mounted: boolean;
rendered: boolean;
};
export {};