import React, {Component} from "react"

interface ColorTitleProps {
    color: string  // The color that should be displayed.
}

class ColorTitle extends Component<ColorTitleProps, {}> {

    constructor(props: ColorTitleProps) {
        super(props);
    }

    render() {
        return (
            <p>Your favorite color is {this.props.color}!</p>
        );
    }

}

export default ColorTitle;