import { initializeApp } from "https://www.gstatic.com/firebasejs/9.15.0/firebase-app.js"
import { getDatabase, ref } from "https://www.gstatic.com/firebasejs/9.15.0/firebase-database.js"
const appSettings = {
databaseURL: "https://playground-c5b18-default-rtdb.europe-west1.firebasedatabase.app/"
}
const app = initializeApp(appSettings)
const database = getDatabase(app)
const booksInDB = ref(database, "books")
const booksEl = document.getElementById("books")
function clearBooksListEl() {
booksEl.innerHTML = ""
}
function appendBookToBooksListEl(bookValue) {
booksEl.innerHTML += `<li>${bookValue}</li>`
}