Last active
July 18, 2019 19:15
-
-
Save SebDuf/061fe76cef6f9f4cd8b94743f6e263f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function IncomingCalls({ calls }: Props) { | |
return ( | |
<div> | |
<p> | |
Incoming Calls | |
</p> | |
{calls.length > 0 ? | |
<div data-testid="incoming-call-list"> | |
{calls.map(call => <CallCard key={call.id} call={call} />)} | |
</React.Fragment> | |
: | |
<div data-testid="no-incoming-calls"> | |
<p> | |
It's lonely out here | |
</p> | |
</div> | |
} | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment