1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

41 lines
818 B
TypeScript

import React, { ReactElement, ReactNode } from 'react'
import styles from './index.module.css'
import PublishedList from './PublishedList'
const sections = [
{
title: 'Published',
component: <PublishedList />
},
{
title: 'Compute Jobs',
component: 'Coming Soon...'
}
]
const Section = ({
title,
component
}: {
title: string
component: ReactNode
}) => {
return (
<div className={styles.section}>
<h2 className={styles.sectionTitle}>{title}</h2>
{component}
</div>
)
}
export default function HistoryPage(): ReactElement {
return (
<article className={styles.content}>
{sections.map((section) => {
const { title, component } = section
return <Section key={title} title={title} component={component} />
})}
</article>
)
}