import React from 'react'; import { SessionToggle } from '../SessionToggle'; import { SessionButton, SessionButtonColor, SessionButtonType, } from '../SessionButton'; export enum SessionSettingType { Toggle = 'toggle', Options = 'options', Button = 'button', } interface Props { title: string; description?: string; type: SessionSettingType; value: boolean | string; onClick?: any; buttonText?: string; buttonColor?: SessionButtonColor; } export class SessionSettingListItem extends React.Component { public constructor(props: Props) { super(props); this.state = {}; } public render(): JSX.Element { const { title, description, type, value, onClick, buttonText, buttonColor, } = this.props; return (
{title}
{description && (
{description}
)}
{type === SessionSettingType.Toggle && (
)} {type === SessionSettingType.Button && ( )}
); } }