// @flow import { LOGO_TITLE, LOGO, LOGO_WHITE_TEXT, LOGO_DARK_TEXT } from 'config'; import { useIsMobile } from 'effects/use-screensize'; import * as ICONS from 'constants/icons'; import Icon from 'component/common/icon'; import React from 'react'; type Props = { currentTheme: string, type: string, }; export default function Logo(props: Props) { const { currentTheme, type } = props; const isMobile = useIsMobile(); const isLightTheme = currentTheme === 'light'; const defaultWithLabel = ( <>
{LOGO_TITLE}
); if (LOGO_WHITE_TEXT && (type === 'embed' || type === 'embed-ended')) { return ; } if (type === 'small' || isMobile) { return ; } if (LOGO_WHITE_TEXT && LOGO_DARK_TEXT) { return ( ); } return defaultWithLabel; }