@dcl/react-ecs
Version:
Decentraland ECS
17 lines (16 loc) • 375 B
JavaScript
import { getTexture, getTextureMode } from './utils';
/**
* @public
*/
/* @__PURE__ */
export function parseUiBackground(props) {
if (!props || !Object.keys(props).length)
return undefined;
const texture = getTexture(props);
return {
...props,
...getTextureMode(props.textureMode),
uvs: props.uvs ?? [],
texture
};
}