import { FC, ReactNode } from 'react' import { Wish } from '../models' interface CreateWishProps { onFocus: () => void hasFocus: boolean onSubmit: (wish: Wish) => void wish: Wish children?: ReactNode } const CreateWish: FC = (props) => { return (
props.onFocus()}>
props.onSubmit({ ...props.wish, name: e.target.value }) } value={props.wish.name} />
) } interface InnerWishPromptInterface { wish: Wish onChange: (wish: Wish) => void children?: ReactNode } const InnerWishPrompt: FC = (props) => { return (