import * as React from 'react' ; import { Color } from './color' ; interface Props { color : Color ; } export const ColorDisplayer = ( props ) => { const divStyle = { width : '11rem' , height : '7rem' , backgroundColor : `rgb(${ props . color . red },${ props . color . green }, ${ props . color . blue })` } ; return ( < div style = { divStyle } > < /div>); } ;