16 lines
438 B
TypeScript
16 lines
438 B
TypeScript
"use client";
|
|
|
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
|
import { useTRPC } from "@repo/core-trpc";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
export function useHeader() {
|
|
const trpc = useTRPC();
|
|
return useSuspenseQuery(trpc.navigation.header.queryOptions({})) as {
|
|
data: {
|
|
items: { label: string; href: string; external: boolean }[];
|
|
logoId?: string;
|
|
};
|
|
};
|
|
}
|