mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2026-06-01 04:00:24 -04:00
28 lines
582 B
JavaScript
28 lines
582 B
JavaScript
import React from 'react';
|
|
|
|
import { List, ListItem, Typography } from '@material-ui/core';
|
|
|
|
import HyperCube from './HyperCube';
|
|
|
|
export default function Data({ model, sn, properties }) {
|
|
if (!sn) {
|
|
return null;
|
|
}
|
|
|
|
const { targets } = sn.qae.data;
|
|
|
|
if (!targets.length) {
|
|
return <Typography>No data targets found</Typography>;
|
|
}
|
|
|
|
return (
|
|
<List>
|
|
{targets.map(t => (
|
|
<ListItem key={t.propertyPath} divider disableGutters>
|
|
<HyperCube target={t} properties={properties} model={model} />
|
|
</ListItem>
|
|
))}
|
|
</List>
|
|
);
|
|
}
|