import * as React from 'react'; import { FormattedMessage } from 'react-intl'; import { BoxLogo } from '@box/blueprint-web-assets/icons/Logo'; import messages from '../messages'; import './Logo.scss'; export interface LogoProps { url?: string; } function getLogo(url?: string) { if (url === 'box') { return ; } if (typeof url === 'string') { return ; } return (
); } const Logo = ({ url }: LogoProps) => (
{getLogo(url)}
); export default Logo;