Reactjs – Conditional type for react props with default optional value
I want to have conditional props types When i try to pass a default value to my optional prop, which is inside the conditional type, the types break export type ChatBase = { id: string; title: string; } type ChatCardProps…