"use client"; import Header from "../components/Header"; import BookDetail from "../components/BookDetail"; import CommentForm from "../components/CommentForm"; import CommentList from "../components/CommentList"; import { useState } from "react"; const StatusBadge = ({ status }) => { if (status == "connecting") { return ( Connecting ); } else if (status == "connected") { return ( Connected to node server ); } else { return ( Service Unavailable ); } }; const InfoAlert = () => { return (
Info
Note Try implementing the comment deletion feature yourself!
); }; export default function Main() { /* Example Book object */ const book = { img: "/images/Bookcover.jpg", title: "Building serverless applications on Knative", author: "Evan Anderson", ISBN: "978-1098142070", publisher: "Oreilly & Associates Inc", publishedDate: "December 19, 2023", description: "A Guide to Designing and Writing Serverless Cloud Application", price: "$49", }; const [status, setStatus] = useState("connecting"); return (

Comments

); }