Skip to Content
Found it useful? Support us with a 5 ⭐ review on ThemeForest!
Data APIs

Data & APIs

This template uses temporary data for prototyping.
You can later replace it with your own API or backend service.


Temp Data

Located in:

  • src/temp-data/hotel-data.ts
  • src/temp-data/flight-data.ts
import { hotels } from "@/temp-data/hotel-data" import { flights } from "@/temp-data/flight-data"
export interface FlightModel { airline: { name: string; shortName?: string; logo: string } price: { amount: number; currency: string } departure: { city: string; code: string; date: string; time: string } arrival: { city: string; code: string; date: string; time: string } duration: string numberOfStops?: number }

Hooks

Countries & Currencies

import { useCountries } from "@/hooks/use-countries" import { useCurrencies } from "@/hooks/use-currencies"

File Upload

import { useFileUpload } from "@/hooks/use-file-upload"

Chat

import { useChat } from "@/hooks/use-chat"

Replace with Your API

All temp data and hooks can be connected to real endpoints later.

Example:

// src/lib/api/hotels.ts import { hotelData } from "@/temp-data/hotel-data" export async function getHotels() { return hotelData }

Then use it inside your page:

const data = await getHotels()
Last updated on