mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
working typescript version
This commit is contained in:
1 parent
581d6011e0
commit
cff746aa38
119 files changed
+247
-189
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import React from "react";
|
||||
import ListItemText from "@material-ui/core/ListItemText";
|
||||
import PhoneCallbackIcon from "@material-ui/icons/PhoneCallback";
|
||||
import PhoneForwardedIcon from "@material-ui/icons/PhoneForwarded";
|
||||
import { List } from "../../../ui/components/List";
|
||||
import { ListItem } from "../../../ui/components/ListItem";
|
||||
|
||||
const CallTypeIcon = {
|
||||
incoming: <PhoneCallbackIcon />,
|
||||
outgoing: <PhoneForwardedIcon />,
|
||||
};
|
||||
|
||||
export const DialerHistory = ({ calls }) => {
|
||||
return (
|
||||
<List>
|
||||
{calls.map((call) => (
|
||||
<ListItem key={call.id} divider>
|
||||
<ListItemText primary={call.caller} secondary={call.phoneNumber} />
|
||||
{CallTypeIcon[call.type]}
|
||||
</ListItem>
|
||||
))}
|
||||
</List>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user