mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
20 lines
843 B
TypeScript
20 lines
843 B
TypeScript
import type {
|
|
ValidatorsStabilitySortingValue,
|
|
ValidatorsStabilitySortingField,
|
|
} from 'types/api/validators';
|
|
|
|
import type { TOption } from 'ui/shared/sort/Option';
|
|
|
|
export const VALIDATORS_STABILITY_SORT_OPTIONS: Array<TOption<ValidatorsStabilitySortingValue>> = [
|
|
{ title: 'Default', id: undefined },
|
|
{ title: 'Status descending', id: 'state-desc' },
|
|
{ title: 'Status ascending', id: 'state-asc' },
|
|
{ title: 'Blocks validated descending', id: 'blocks_validated-desc' },
|
|
{ title: 'Blocks validated ascending', id: 'blocks_validated-asc' },
|
|
];
|
|
|
|
export const VALIDATORS_STABILITY_SORT_SEQUENCE: Record<ValidatorsStabilitySortingField, Array<ValidatorsStabilitySortingValue | undefined>> = {
|
|
state: [ 'state-desc', 'state-asc', undefined ],
|
|
blocks_validated: [ 'blocks_validated-desc', 'blocks_validated-asc', undefined ],
|
|
};
|