A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
TypeScript amazon-primeelectronepic-games-launcherepic-games-storeepic-storegaminggoggog-galaxyheroic-games-launcherlinuxplay-gamesprotonsteamwine
import ContextProvider from 'frontend/state/ContextProvider'
import { useEffect, useContext } from 'react'
export const hasHelp = (
helpItemId: string,
title: string,
content: JSX.Element
) => {
const { help } = useContext(ContextProvider)
useEffect(() => {
help.addHelpItem(helpItemId, {
title,
content
})
return () => {
help.removeHelpItem(helpItemId)
}
}, [])
}