import React from 'react'; import { LocalizerType } from '../types/Util'; export interface PropsType { i18n: LocalizerType; isRegistrationDone: boolean; relinkDevice: () => void; } export const RelinkDialog = ({ i18n, isRegistrationDone, relinkDevice, }: PropsType): JSX.Element | null => { if (isRegistrationDone) { return null; } return (

{i18n('unlinked')}

{i18n('unlinkedWarning')}
); };