import React, { Component } from "react"; import { connect } from "react-redux"; import { translate } from "react-i18next"; @translate(["home"], { wait: true }) export default class StationCard extends Component { render() { const { station, isOwner } = this.props; let icon = null; if (station.type === "official") { if (station.privacy !== "public") icon = lock; } else { if (isOwner) icon = home; if (station.privacy !== "public") icon = lock; } return (
); } }