const React = require("react"); const teamspeakDefaults = { url: "ts3server://ensl.org/", password: "ns2gather", alien: { channel: "NS2 Gather/Gather #1/Alien", password: "ns2gather" }, marine: { channel: "NS2 Gather/Gather #1/Marine", password: "ns2gather" } }; var TeamSpeakButton = exports.TeamSpeakButton = React.createClass({ getDefaultProps() { return teamspeakDefaults }, marineUrl() { return this.teamSpeakUrl(this.props.marine); }, alienUrl() { return this.teamSpeakUrl(this.props.alien); }, teamSpeakUrl(conn) { let params = `channel=${encodeURIComponent(conn.channel)}& channelpassword=${encodeURIComponent(conn.password)}`; return (`${this.props.url}?${params}`); }, render() { return ( ); } }); var TeamSpeakModal = exports.TeamSpeakModal = React.createClass({ getDefaultProps() { return teamspeakDefaults; }, render() { return

Teamspeak Server Information

Server
{this.props.url}
Password
{this.props.password}
Marine Channel
{this.props.marine.channel}
Alien Channel
{this.props.alien.channel}
} });