import*as React from"react";import setRef from"./setRef";export default function useForkRef(e,t){return React.useMemo(function(){return null==e&&null==t?null:function(f){setRef(e,f),setRef(t,f)}},[e,t])};