Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const WrappedComponent = ({
onRef,
...rest
}: Exclude & {
onRef?: C extends React.ComponentClass
? React.Ref>
: never;
}): React.ReactElement => {
const isFocused = useIsFocused();
// @ts-ignore
return ;
};