import { Text } from '#/components/Text';

import type { ListRow } from './model';
import * as styles from './SectionLabelRow.css';

/** an uppercase heading that groups the rows beneath it (e.g. "Recent", "Search options"). */
export function SectionLabelRow({ row }: { row: Extract<ListRow, { kind: 'sectionLabel' }> }) {
	return (
		<Text className={styles.label} color="textContrastMedium">
			{row.label}
		</Text>
	);
}
