import {Label} from '@gravity-ui/uikit';
import type {TReplicationState} from '../../types/api/schema/replication';
interface AsyncReplicationStateProps {
state?: TReplicationState;
}
export function AsyncReplicationState({state}: AsyncReplicationStateProps) {
if (!state) {
return null;
}
if ('StandBy' in state) {
return ;
}
if ('Paused' in state) {
return ;
}
if ('Done' in state) {
return ;
}
if ('Error' in state) {
return ;
}
return ;
}