mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
81 lines
2.3 KiB
XML
81 lines
2.3 KiB
XML
import Card from '../../components/Common/Card';
|
||
import Divider from '../../components/Common/Divider';
|
||
import LabeledText from '../../components/Common/LabeledText';
|
||
import { IRSFormStats } from '../../models';
|
||
|
||
interface RSFormStatsProps {
|
||
stats: IRSFormStats
|
||
}
|
||
|
||
function RSFormStats({stats}: RSFormStatsProps) {
|
||
return (
|
||
<Card>
|
||
<LabeledText id='count_all'
|
||
label='Всего конституент '
|
||
text={stats.count_all}
|
||
/>
|
||
<LabeledText id='count_errors'
|
||
label='Ошибок '
|
||
text={stats.count_errors}
|
||
/>
|
||
{ stats.count_property > 0 &&
|
||
<LabeledText id='count_property'
|
||
label='Только свойство '
|
||
text={stats.count_property}
|
||
/>}
|
||
{ stats.count_incalc > 0 &&
|
||
<LabeledText id='count_incalc'
|
||
label='Невычислимы '
|
||
text={stats.count_incalc}
|
||
/>}
|
||
<Divider />
|
||
<LabeledText id='count_termin'
|
||
label='Термины '
|
||
text={stats.count_termin}
|
||
/>
|
||
<Divider />
|
||
{ stats.count_base > 0 &&
|
||
<LabeledText id='count_base'
|
||
label='Базисные множества '
|
||
text={stats.count_base}
|
||
/>}
|
||
{ stats.count_constant > 0 &&
|
||
<LabeledText id='count_constant'
|
||
label='Константные множества '
|
||
text={stats.count_constant}
|
||
/>}
|
||
{ stats.count_structured > 0 &&
|
||
<LabeledText id='count_structured'
|
||
label='Родовые структуры '
|
||
text={stats.count_structured}
|
||
/>}
|
||
{ stats.count_axiom > 0 &&
|
||
<LabeledText id='count_axiom'
|
||
label='Аксиомы '
|
||
text={stats.count_axiom}
|
||
/>}
|
||
{ stats.count_term > 0 &&
|
||
<LabeledText id='count_term'
|
||
label='Термы '
|
||
text={stats.count_term}
|
||
/>}
|
||
{ stats.count_function > 0 &&
|
||
<LabeledText id='count_function'
|
||
label='Терм-функции '
|
||
text={stats.count_function}
|
||
/>}
|
||
{ stats.count_predicate > 0 &&
|
||
<LabeledText id='count_predicate'
|
||
label='Предикат-функции '
|
||
text={stats.count_predicate}
|
||
/>}
|
||
{ stats.count_theorem > 0 &&
|
||
<LabeledText id='count_theorem'
|
||
label='Теормы '
|
||
text={stats.count_theorem}
|
||
/>}
|
||
</Card>
|
||
);
|
||
}
|
||
|
||
export default RSFormStats; |