add talents

This commit is contained in:
2023-08-20 23:20:25 +02:00
parent 4be42dd6c3
commit 4432d36abf
14 changed files with 420 additions and 161 deletions

View File

@@ -0,0 +1,14 @@
export async function useTalents() {
const { $trpc } = useNuxtApp()
const getTalents = async (category: string, favorite: boolean) => await $trpc.talents.getTalents.query({ favorite, category })
const {
data: getCategories,
} = await $trpc.talents.getCategories.useQuery()
return {
getTalents,
getCategories,
}
}