7 lines
220 B
TypeScript
7 lines
220 B
TypeScript
import { type Ref, type RefCallback } from 'react';
|
|
import { combineRefs } from '~/utils/combineRefs';
|
|
|
|
export const useCombinedRefs = <T>(
|
|
...refs: (Ref<T> | undefined)[]
|
|
): RefCallback<T> => combineRefs<T>(...refs);
|