UNPKG

web3.db-fileconnector

Version:

GraphQL System Built on web3 technologies. Web3.DB is an open database built on top of web3 technologies. It is a decentralized, open-source database that allows users to store and query data in a secure and efficient manner. The system is designed to be

19 lines (14 loc) 431 B
import { useContext } from "react"; import { GlobalContext } from "../contexts/Global"; import { findContextById } from "../utils"; const useContextDetails = (id) => { const { settings } = useContext(GlobalContext); const details = findContextById(settings.contexts, id); const name = details?.name; const logo = details?.logo; return { name, logo, }; }; export default useContextDetails;