Files
Ahmad Mirzaei 7001a47232 feat: introducing react router to nebula web (#973)
* feat: nebula web react-router

* chore: `<HubLayout />`
2022-10-26 16:09:51 +02:00

28 lines
601 B
JavaScript

import React from 'react';
import { List, ListItem, Typography } from '@mui/material';
import DataCube from './DataCube';
export default function Data({ setProperties, 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>
<DataCube target={t} properties={properties} setProperties={setProperties} />
</ListItem>
))}
</List>
);
}