import { Component } from '@serpentity/serpentity'; /** * Component that stores a winner * * @extends {external:Serpentity.Component} * @class WinnerComponent * @param {object} config a configuration object to extend. */ export default class WinnerComponent extends Component { constructor(config) { super(config); /** * The properthy that holds the winner * * @property {string} winner * @instance * @memberof WionnerComponent */ this.winner = this.winner || null; } }