mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import React, { ReactElement } from 'react'
|
|
import PagePublish from '../components/pages/Publish'
|
|
import Layout from '../components/Layout'
|
|
import { graphql, PageProps } from 'gatsby'
|
|
|
|
export default function PageGatsbyPublish(props: PageProps): ReactElement {
|
|
const content = (props.data as any).content.edges[0].node.childPagesJson
|
|
const { title, description } = content
|
|
|
|
return (
|
|
<Layout title={title} description={description} uri={props.uri}>
|
|
<PagePublish content={content} />
|
|
</Layout>
|
|
)
|
|
}
|
|
|
|
export const contentQuery = graphql`
|
|
query PublishPageQuery {
|
|
content: allFile(filter: { relativePath: { eq: "pages/publish.json" } }) {
|
|
edges {
|
|
node {
|
|
childPagesJson {
|
|
title
|
|
description
|
|
form {
|
|
title
|
|
data {
|
|
name
|
|
placeholder
|
|
label
|
|
help
|
|
type
|
|
required
|
|
options
|
|
}
|
|
success
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`
|