Rocky_Mountain_Vending/.pnpm-store/v10/files/58/cf7e322ad1e5f2ca8f2d4889a9a81555b9d0e0f7266d87f083da5692d4ccb98940ae107108c7592ac1359915167e7ec1edb17a87a7c7f50a0fb0137cb9ff41
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

14 lines
431 B
Text

import { assignRef } from './assignRef';
import { createCallbackRef } from './createRef';
/**
* Transforms one ref to another
* @example
* ```tsx
* const ResizableWithRef = forwardRef((props, ref) =>
* <Resizable {...props} ref={transformRef(ref, i => i ? i.resizable : null)}/>
* );
* ```
*/
export function transformRef(ref, transformer) {
return createCallbackRef((value) => assignRef(ref, transformer(value)));
}