mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
- 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
36 lines
666 B
TypeScript
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 />
|
|
</>
|
|
);
|
|
};
|