// SPDX-FileCopyrightText: © 2017 EteSync Authors // SPDX-License-Identifier: AGPL-3.0-only import * as React from "react"; import * as Etebase from "etebase"; import Button from "@material-ui/core/Button"; import TextField from "@material-ui/core/TextField"; import Container from "./widgets/Container"; import { useSelector } from "react-redux"; import { StoreState } from "./store"; import { useCredentials } from "./credentials"; import { getCollectionManager } from "./etebase-helpers"; export default function Debug() { const etebase = useCredentials()!; const [stateCollectionUid, setCollectionUid] = React.useState(""); const [itemsUids, setEntriesUids] = React.useState(""); const [result, setResult] = React.useState(""); const cacheCollections = useSelector((state: StoreState) => state.cache2.collections); const cacheItems = useSelector((state: StoreState) => state.cache2.items); function handleInputChange(func: (value: string) => void) { return (event: React.ChangeEvent) => { func(event.target.value); }; } return (

Result:

{result}
); }