Rocky_Mountain_Vending/.pnpm-store/v10/files/25/476df6524224e77a22ae4d1b08336d2ad8dd0914884c7aa549bef9220d7426c8aa697c2e7977bbfe0190b44c9fb3bcc5be60d7355a5ec196986ba435d0cdae
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
449 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(function (value) { return assignRef(ref, transformer(value)); });
}