import React from'react';import Module from'../Module';import'./base.css';class Link extends Module{constructor(a){super(a),this.state={},this.ref.value=this.props.link||this.ref.value}go(a){this.CoreSystem.go(a)}render(){return React.createElement('a',{href:this.RoutingSystem.getURL(this.ref.value),className:`Link ${this.props.className}`,onClick:a=>{this.go(this.ref.value),a.preventDefault()}},super.render())}}Link.EditPosition='top-left',Link.Inputs={ref:{type:Module.Types.Text,defaultValue:'home'}},Link.Category='Layout';export default Link;