Add resource pack generators: blockstates and model

This commit is contained in:
Misode
2021-11-05 01:22:23 +01:00
parent 6d8829ecde
commit fba80da273
11 changed files with 115 additions and 38 deletions

View File

@@ -1,21 +0,0 @@
import config from '../../config.json'
import { ToolCard } from '../components'
import { locale } from '../Locales'
import { cleanUrl } from '../Utils'
type WorldgenProps = {
lang: string,
changeTitle: (title: string) => unknown,
path?: string,
}
export function Worldgen({ lang, changeTitle }: WorldgenProps) {
const loc = locale.bind(null, lang)
changeTitle(loc('title.generator_category', loc('worldgen')))
return <main>
<div class="home">
{config.generators.filter(g => g.category === 'worldgen').map(g =>
<ToolCard title={loc(g.id)} link={cleanUrl(g.url)} />
)}
</div>
</main>
}