Files
new-phone-who-dis/phone/src/apps/settings/components/SettingItem.tsx
T
Taso 4c9ed764cc styling & tweaks: Improved settings styling and altered config
- Still WIP and many of those components are placeholder/proof of concept for now
- Added corresponding default.json schemas for new settings
- Also added two ringtones that are currently not being utilized
2020-11-19 11:31:16 -05:00

36 lines
666 B
TypeScript

import React from 'react';
import {
ListItem,
ListItemText,
Divider,
ListItemIcon,
} from '@material-ui/core';
import { SvgIconProps } from '@material-ui/core';
interface IProps {
options?: any;
label: string;
value?: string | null;
onClick?: any;
icon: JSX.Element;
disabled?: boolean;
}
export const SettingItem = ({
options,
label,
value,
onClick,
icon,
disabled,
}: IProps) => {
return (
<>
<ListItem onClick={() => onClick(options)} button>
<ListItemIcon>{icon}</ListItemIcon>
<ListItemText primary={label} secondary={value ? value : undefined} />
</ListItem>
<Divider />
</>
);
};