Files
new-phone-who-dis/phone/src/apps/settings/components/SettingItem.tsx
T
2020-10-07 12:19:55 -04:00

14 lines
352 B
TypeScript

import React from "react";
import { ListItem, ListItemText, Divider } from "@material-ui/core";
export const SettingItem = ({ options, label, value, onClick }) => {
return (
<>
<ListItem onClick={() => onClick(options)} button>
<ListItemText primary={label} secondary={value} />
</ListItem>
<Divider />
</>
);
};