mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-21 07:21:44 +01:00
add talents
This commit is contained in:
14
src/composables/useTalents.ts
Normal file
14
src/composables/useTalents.ts
Normal 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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user