31 lines
957 B
TypeScript
31 lines
957 B
TypeScript
import * as React from "react";
|
|
import { StepParams } from "../interfaces";
|
|
import { ToolTips } from "../../constants";
|
|
import { StepWrapper, StepHeader, StepContent } from "../step_ui";
|
|
import { Col, Row } from "../../ui/index";
|
|
import { t } from "../../i18next_wrapper";
|
|
|
|
export function TileEmergencyStop(props: StepParams) {
|
|
const { dispatch, currentStep, index, currentSequence } = props;
|
|
const className = "emergency-stop-step";
|
|
return <StepWrapper>
|
|
<StepHeader
|
|
className={className}
|
|
helpText={ToolTips.EMERGENCY_LOCK}
|
|
currentSequence={currentSequence}
|
|
currentStep={currentStep}
|
|
dispatch={dispatch}
|
|
index={index}
|
|
confirmStepDeletion={props.confirmStepDeletion} />
|
|
<StepContent className={className}>
|
|
<Row>
|
|
<Col xs={12}>
|
|
<p>
|
|
{t("Unlocking a device requires user intervention")}
|
|
</p>
|
|
</Col>
|
|
</Row>
|
|
</StepContent>
|
|
</StepWrapper>;
|
|
}
|