neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
@@ -0,0 +1,20 @@
import isEventHandler from '@mui/utils/isEventHandler';
/**
* Extracts event handlers from a given object.
* A prop is considered an event handler if it is a function and its name starts with `on`.
*
* @param object An object to extract event handlers from.
*/
function extractEventHandlers(object) {
if (object === undefined) {
return {};
}
const result = {};
for (const prop of Object.keys(object)) {
if (isEventHandler(prop, object[prop])) {
result[prop] = object[prop];
}
}
return result;
}
export default extractEventHandlers;