2016-07-03 16:45:13 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
export function TextualCompletion({
|
|
|
|
title,
|
|
|
|
subtitle,
|
|
|
|
description,
|
|
|
|
}: {
|
2016-06-16 23:28:09 +00:00
|
|
|
title: ?string,
|
|
|
|
subtitle: ?string,
|
|
|
|
description: ?string
|
|
|
|
}) {
|
|
|
|
return (
|
|
|
|
<div className="mx_Autocomplete_Completion">
|
2016-07-03 16:45:13 +00:00
|
|
|
<span>{title}</span>
|
|
|
|
<em>{subtitle}</em>
|
|
|
|
<span style={{color: 'gray', float: 'right'}}>{description}</span>
|
2016-06-16 23:28:09 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|