{"size": 1172, "ext": "js", "max_stars_repo_path": "src/components/Logo/index.js", "max_stars_repo_name": "yassinedoghri/marvel-jarvig", "max_stars_repo_stars_event_min_datetime": "2018-05-08T16:35:35.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-22T23:32:40.000Z", "max_issues_repo_path": "src/components/Logo/index.js", "max_issues_repo_name": "yassinedoghri/marvel-jarvig", "max_issues_repo_issues_event_min_datetime": "2018-05-12T15:43:07.000Z", "max_issues_repo_issues_event_max_datetime": "2018-06-10T16:30:22.000Z", "max_forks_repo_path": "src/components/Logo/index.js", "max_forks_repo_name": "yassinedoghri/marvel-jarvig", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 13, "max_issues_count": 15, "max_forks_count": null, "avg_line_length": 22.1132075472, "max_line_length": 65, "alphanum_fraction": 0.6075085324}
import Icon from "components/Logo/Icon";
import JarvigText from "components/Logo/JarvigText";

import MarvelLogo from "components/Logo/MarvelLogo";
import { Link } from "react-router-dom";
import styled from "styled-components";
import media from "utils/media";

const Logo = styled(Link)`
  margin: ${props => (props.center ? "0 auto" : "0")};
  display: ${props => {
    if (!props.hidden) {
      return props.inline ? "flex" : "block";
    }
    return "none";
  }};
  align-items: center;

  & > svg {
    color: ${props => props.theme.colors.contrastDark.secondary};
    font-size: 2rem;
    margin-right: ${props => props.theme.spaces.xs}em;
  }

  &:hover > svg {
    color: ${props => props.theme.colors.contrastDark.primary};
  }

  & ${MarvelLogo}, & ${JarvigText} {
    display: ${props => (props.mobileicon ? "none" : "block")};
  }

  & ${Icon} {
    display: ${props => (props.mobileicon ? "block" : "none")};
  }

  ${media.desktop`
    & ${MarvelLogo}, & ${JarvigText} {
      display: block;
    }

    & ${Icon} {
      display: none;
    }  
  `};
`;

Logo.MarvelLogo = MarvelLogo;
Logo.JarvigText = JarvigText;
Logo.Icon = Icon;

export default Logo;
