// @flow import React from 'react'; import Button from 'component/button'; import * as PAGES from 'constants/pages'; import classnames from 'classnames'; type Props = { title: string, subtitle?: string, multirow?: boolean, // Displays the Value widget(s) below the Label instead of on the right. useVerticalSeparator?: boolean, // Show a separator line between Label and Value. Useful when there are multiple Values. disabled?: boolean, highlighted?: boolean, membersOnly?: boolean, children?: React$Node, }; export default function SettingsRow(props: Props) { const { title, subtitle, multirow, useVerticalSeparator, disabled, highlighted, membersOnly, children } = props; return (
{title} {membersOnly && ( )} {subtitle &&

{subtitle}

}
{children && children}
); }