import React , { FC } from "react" ; import { Props , defaultData } from "./types" ; const ColourSettings = ( { data = defaultData , setData } ) => ( < div className = "ColourSettings" > < label > Colour < input type = "color" value = { data . colour } onChange = { ( event ) => setData ( { colour : event . target . value } ) } /> < /label> < /div>); export default ColourSettings ;