Jesus sucks

This commit is contained in:
2024-12-17 13:23:11 -08:00
parent 3a3382ffff
commit b2dbf46d28
13060 changed files with 1310035 additions and 1 deletions

22
backend/frontend/node_modules/@restart/ui/esm/utils.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
import * as React from 'react';
export function isEscKey(e) {
return e.code === 'Escape' || e.keyCode === 27;
}
export function getReactVersion() {
const parts = React.version.split('.');
return {
major: +parts[0],
minor: +parts[1],
patch: +parts[2]
};
}
export function getChildRef(element) {
if (!element || typeof element === 'function') {
return null;
}
const {
major
} = getReactVersion();
const childRef = major >= 19 ? element.props.ref : element.ref;
return childRef;
}