import * as React from 'react'; import { computed, makeObservable } from 'mobx'; export interface ILinearGradientProps { id: string; colors: string[]; // TODO orientation: string; } export class LinearGradient extends React.Component { constructor(props: any) { super(props); makeObservable(this); } @computed public get gradientStopPoints() { const gradientStopPoints = []; const colors = this.props.colors; for (let i = 0; i < colors.length; i++) { gradientStopPoints.push( ); } return gradientStopPoints; } public render() { return ( {this.gradientStopPoints} ); } } export default LinearGradient;