@tycoonsystems/tycoon-modules
Version:
www.tv.tycoon.systems/documentation
1 lines • 871 B
JavaScript
import React from"react";import Link from"next/link";const Module=e=>React.createElement(React.Fragment,null,e._loggedIn?.meta?.locationMeta?.city&&e._loggedIn?.meta?.locationMeta?.country?React.createElement(React.Fragment,null,React.createElement(Link,{href:"/settings?t=location",className:"menuLinkSelector",onClick:e?.handleToggleSettings,style:{position:"relative",alignSelf:"center"}},React.createElement("li",null,React.createElement("div",{className:"material-icons"},"flag"),React.createElement("div",{style:{display:"flex",alignItems:"center"}},"Location: ",e?.city?React.createElement("span",null,e?._loggedIn?.meta?.locationMeta?.city??null,", "):null,Object.prototype.hasOwnProperty.call(e,"country")&&!e.country||!Object.prototype.hasOwnProperty.call(e,"country")?React.createElement("span",null,e?.resolvedCountry):null)))):null);export default Module;