getPropsMap function
Extracts a nested Map value from props.
Returns an empty map if the value is not a Map.
Implementation
Map<String, dynamic> getPropsMap(Map<String, dynamic> props, String key) {
final value = props[key];
if (value is Map<String, dynamic>) return value;
return {};
}