feat: process documentation constant data

This commit is contained in:
RadoslavDimchev 2023-10-24 07:13:25 +03:00
parent b96715b21a
commit 1affa9a86f
1 changed files with 40 additions and 14 deletions

View File

@ -5,26 +5,52 @@ type DocumentationItem =
| { type: 'link'; content: string }
| { type: 'text'; content: string }
export const DOCUMENTATION: Record<string, Record<string, DocumentationItem[]>> = {
type ClientData = {
icon: string
documentation: Record<string, DocumentationItem[]>
}
type Documentation = Record<string, ClientData>
export const DOCUMENTATION: Documentation = {
Nethermind: {
icon: '/icons/nethermind-circle.png',
documentation: {
[MAC]: [{ type: 'text', content: 'Text for mac' }],
[WINDOWS]: [{ type: 'text', content: 'Text for windows' }],
[LINUX]: [{ type: 'text', content: 'Text for linux' }],
},
},
Besu: {
icon: 'hyperledger-besu-circle.png',
documentation: {
[MAC]: [{ type: 'text', content: 'Text for mac' }],
[WINDOWS]: [{ type: 'text', content: 'Text for windows' }],
[LINUX]: [{ type: 'text', content: 'Text for linux' }],
},
},
Geth: {
icon: '/gethereum-mascot-circle.png',
documentation: {
[MAC]: [{ type: 'text', content: 'Text for mac' }],
[WINDOWS]: [{ type: 'text', content: 'Text for windows' }],
[LINUX]: [{ type: 'text', content: 'Text for linux' }],
},
},
Erigon: {
icon: '/icons/erigon-circle.png',
documentation: {
[MAC]: [{ type: 'text', content: 'Text for mac' }],
[WINDOWS]: [{ type: 'text', content: 'Text for windows' }],
[LINUX]: [{ type: 'text', content: 'Text for linux' }],
},
Nimbus: {},
},
Nimbus: {
icon: '/icons/NimbusDisabled.svg',
documentation: {
[MAC]: [{ type: 'text', content: 'Text for mac' }],
[WINDOWS]: [{ type: 'text', content: 'Text for windows' }],
[LINUX]: [{ type: 'text', content: 'Text for linux' }],
},
},
}