import FrictionlessViewFactory from "./drd/FrictionlessView";
import Table from "./drd/Table";
/* eslint import/no-default-export: off */
function DatapackageLayout({ children, project, excerpt }) {
const { metadata } = project;
const title = metadata.title;
const resources = metadata.resources;
const views = metadata.views;
const FrictionlessView = FrictionlessViewFactory({ views, resources });
return (
{views.map((view, i) => {
return (
);
})}
Data files
| File |
Title |
Format |
{resources.map((r) => {
return (
|
{r.path}
|
{r.title} |
{r.format.toUpperCase()} |
);
})}
{resources.slice(0, 5).map((resource) => {
return (
{resource.title || resource.name || resource.path}
);
})}
);
}
export default function MDLayout({ children, layout, ...props }) {
return {children};
}