import { useQuery } from '@tanstack/react-query'; import { getBond } from '../api/bondApi'; import type { BondResponse } from '@/shared/api/responses'; export function useBond(secid: string) { return useQuery({ queryKey: ['bond', secid], queryFn: async () => { const res = await getBond(secid); return res.data; }, staleTime: 900_000, }); }