// @flow import 'scss/component/_header.scss'; import { ENABLE_NO_SOURCE_CLAIMS } from 'config'; import { useHistory } from 'react-router'; import * as ICONS from 'constants/icons'; import * as PAGES from 'constants/pages'; import Button from 'component/button'; import Icon from 'component/common/icon'; import React from 'react'; import Tooltip from 'component/common/tooltip'; type HeaderMenuButtonProps = { activeChannelStakedLevel: number, authenticated: boolean, user: ?User, doOpenModal: (string, {}) => void, }; export default function HeaderMenuButtons(props: HeaderMenuButtonProps) { const { authenticated, user } = props; const livestreamEnabled = Boolean(ENABLE_NO_SOURCE_CLAIMS && user && !user.odysee_live_disabled); const uploadProps = { requiresAuth: !authenticated }; const { push } = useHistory(); return authenticated ? (
{livestreamEnabled && ( )}
) : ( ); }