Add Job type and JobGroups array

This commit is contained in:
Justin Edmund 2022-04-04 23:42:22 -07:00
parent 78a9c62376
commit d7cb459f99
2 changed files with 75 additions and 0 deletions

15
types/Job.d.ts vendored Normal file
View file

@ -0,0 +1,15 @@
interface Job {
id: string
row: string
ml: boolean
order: number
name: {
[key: string]: string
en: string
ja: string
}
proficiency: {
proficiency1: number
proficiency2: number
}
}

60
utils/jobGroups.tsx Normal file
View file

@ -0,0 +1,60 @@
interface JobGroup {
slug: string
name: {
[key: string]: string
en: string
ja: string
}
}
export const jobGroups: JobGroup[] = [
{
slug: "1",
name: {
en: 'Row I',
ja: 'Class I'
}
},
{
slug: "2",
name: {
en: 'Row II',
ja: 'Class II'
}
},
{
slug: "3",
name: {
en: 'Row III',
ja: 'Class III'
}
},
{
slug: "4",
name: {
en: 'Row IV',
ja: 'Class IV'
}
},
{
slug: "5",
name: {
en: 'Row V',
ja: 'Class V'
}
},
{
slug: "ex1",
name: {
en: 'Extra I',
ja: 'EXTRA I'
}
},
{
slug: "ex2",
name: {
en: 'Extra II',
ja: 'EXTRA II'
}
},
]