npx tsc –noEmit
Three dots {…props} decompiles array and used to merge an array with individual variables const linkProps = { …props, …(customname === true ? { passHref: true } : {}) }