diff --git a/src/components/ItemRecipeSelect.tsx b/src/components/ItemRecipeSelect.tsx index 14ba0f4..dc1a803 100644 --- a/src/components/ItemRecipeSelect.tsx +++ b/src/components/ItemRecipeSelect.tsx @@ -1,17 +1,15 @@ import { computed, defineComponent, watch, type PropType } from 'vue' +import { useI18n } from 'vue-i18n' import { NSelect, type SelectRenderLabel, type SelectRenderTag } from 'naive-ui' import BuildingImage from '@/components/BuildingImage' import ItemImage from '@/components/ItemImage' import type { Id } from '@/types' -import { getBuildingById, getItemById, getRecipeById, recipes } from '@/data' +import { getRecipeById, recipes } from '@/data' + +const renderItem = (itemId: Id, quantity: number, perMinute: number) => { + const { t } = useI18n() -const renderItem = ( - itemId: Id, - itemName: string, - quantity: number, - perMinute: number, -) => { return (