import React, { useState } from "react"; import { Button, Row, Col, ButtonGroup } from "react-bootstrap"; // import { UserDocType } from "../types"; import FireTable from "../components/FireTable"; import LocalTable from "../components/LocalTable"; const tableList = ["customers", "products"]; export function FireDashboard() { const [tableName, setTableName] = useState(tableList[0]); return ( <>
{tableList.map((tname) => ( ))}

FireStore Data

Local SQLite Data

* This table syncs with Firestore using realtime updates, so the latest data available in firestore will be shown here.
* Cells are editable, click on any cells to edit, the edit will be reflected in firestore
* deleting a row will create a 'deleted' field for the row in the firestore. and will not be fetched

* This table shows data from local sqlite database, it may not be realtime, so to view the latest data use 'reload' button
* to start the sync process from firestore to sqlite db use 'sync' button

); } export default FireDashboard;