Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getLinkedObjectClass(props, { topology, linkedRenderStore }) {
return linkedRenderStore.getRenderClassForProperty(
allRDFValues(linkedRenderStore.tryEntity(props.subject), defaultNS.rdf('type'), true),
expandedProperty(props.label, linkedRenderStore),
topology,
);
}
objType(data) {
const { linkedRenderStore } = this.context;
return allRDFValues(data, linkedRenderStore.namespaces.rdf('type'), true) || linkedRenderStore.defaultType;
}
const Type = (props, { linkedRenderStore, topology }) => {
const objType = allRDFValues(
linkedRenderStore.tryEntity(props.subject),
linkedRenderStore.namespaces.rdf('type'),
true,
) || linkedRenderStore.defaultType;
if (objType === undefined) {
return null;
}
const Klass = linkedRenderStore.getRenderClassForType(objType, topology);
if (Klass !== undefined) {
return React.createElement(
Klass,
props,
props.children,
);
}
return React.createElement(