mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
21 lines
457 B
TypeScript
21 lines
457 B
TypeScript
import React from "react";
|
|
import { ListItem, ListItemText, Divider } from "@material-ui/core";
|
|
|
|
interface IProps {
|
|
options?: any;
|
|
label: string;
|
|
value: string | null;
|
|
onClick?: any;
|
|
}
|
|
|
|
export const SettingItem = ({ options, label, value, onClick }: IProps) => {
|
|
return (
|
|
<>
|
|
<ListItem onClick={() => onClick(options)} button>
|
|
<ListItemText primary={label} secondary={value} />
|
|
</ListItem>
|
|
<Divider />
|
|
</>
|
|
);
|
|
};
|