@sartech/travel-booking
v0.1.3
Published
Reusable chat-based travel booking component for React apps.
Downloads
234
Readme
@sartech/travel-booking
Reusable chat-driven flight booking component extracted from the existing aibf_frontend flow.
Install
npm i @sartech/travel-bookingUsage
import React from "react";
import { TravelBooking } from "@sartech/travel-booking";
export default function App() {
return (
<TravelBooking
config={{
apiBaseUrl: "http://localhost:5000",
socketUrl: "http://localhost:5000",
userUid: "1058",
strictBusinessClass: true,
}}
/>
);
}Structure
components/TravelBooking.jsxcomponents/ChatWindow.jsxcomponents/MessageRenderer.jsxcomponents/FlightResults.jsxcomponents/Filters.jsxcomponents/BookingSummary.jsxhooks/useChatFlow.jshooks/useFlightSearch.jshooks/useBooking.jsservices/api.jsservices/flightService.jsservices/bookingService.jshelpers/formatters.jshelpers/constants.jshelpers/validators.jsindex.js
