import React, { useCallback } from 'react'; import { Just } from 'folktale/maybe'; import { Grid } from 'indigo-react'; import View from 'components/View'; import { ForwardButton } from 'components/Buttons'; import { ROUTE_NAMES } from 'lib/routeNames'; import { useHistory } from 'store/history'; import { useWallet } from 'store/wallet'; import FooterButton from 'components/FooterButton'; export default function Admin() { const history = useHistory(); const { urbitWallet } = useWallet(); const goRedownload = useCallback(() => history.push(ROUTE_NAMES.REDOWNLOAD), [ history, ]); const goReticket = useCallback(() => history.push(ROUTE_NAMES.RETICKET), [ history, ]); const goEditPerms = useCallback(() => history.push(ROUTE_NAMES.PERMISSIONS), [ history, ]); const canDownloadPassport = Just.hasInstance(urbitWallet); return ( Download Passport Reticket Edit permissions Transfer ); }