// @flow import React from 'react'; 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, children?: React$Node, }; export default function SettingsRow(props: Props) { const { title, subtitle, multirow, useVerticalSeparator, disabled, children } = props; return (

{title}

{subtitle &&

{subtitle}

}
{children && children}
); }