feat: Implement mobile application and lead processing utilities.

This commit is contained in:
2026-02-19 14:21:51 +01:00
parent fca42db4d2
commit c53a71a5f9
120 changed files with 24080 additions and 851 deletions

View File

@@ -1,12 +1,13 @@
import { trpc } from '@/lib/trpc'
import { MOCK_STELLEN } from '@/lib/mock-data'
export function useStellenListe(opts?: { sparte?: string; lehrjahr?: string }) {
return trpc.stellen.listPublic.useQuery({
sparte: opts?.sparte,
lehrjahr: opts?.lehrjahr,
})
let data = MOCK_STELLEN.filter((s) => s.aktiv)
if (opts?.sparte) data = data.filter((s) => s.sparte === opts.sparte)
if (opts?.lehrjahr) data = data.filter((s) => s.lehrjahr === opts.lehrjahr)
return { data, isLoading: false, refetch: () => {}, isRefetching: false }
}
export function useStelleDetail(id: string) {
return trpc.stellen.byId.useQuery({ id })
const data = MOCK_STELLEN.find((s) => s.id === id) ?? null
return { data, isLoading: false }
}