Files
2026-01-16 02:20:32 +00:00

6 lines
160 B
JavaScript

export const getRenderPropValue = propValue => {
if (!propValue) {
return null;
}
return typeof propValue === 'function' ? propValue() : propValue;
};