guesstimate/client/src/routes/project/export-tab.tsx

19 lines
425 B
TypeScript
Raw Normal View History

2020-07-09 13:00:42 +02:00
import React, { FunctionComponent } from "react";
2020-04-23 08:45:06 +02:00
import { Project } from "../../models/project";
export interface ExportTabProps {
project: Project
}
2020-07-09 13:00:42 +02:00
const ExportTab: FunctionComponent<ExportTabProps> = ({ project }) => {
2020-04-23 08:45:06 +02:00
return (
<div>
2020-07-09 13:00:42 +02:00
<label className="label is-size-4">Format JSON</label>
2020-04-23 08:45:06 +02:00
<pre>{ JSON.stringify(project, null, 2) }</pre>
<hr />
</div>
);
};
export default ExportTab;