UNPKG

@kiwicom/smart-faq

Version:

26 lines (19 loc) 515 B
// @flow import * as React from 'react'; import Alert from '@kiwicom/orbit-components/lib/Alert'; import styled from 'styled-components'; import type { Emergency as EmergencyType } from '../../../SmartFAQ/context/Emergencies'; type Props = {| emergency: EmergencyType, |}; const Wrapper = styled.div` margin-top: 24px; `; const Emergency = ({ emergency }: Props) => ( <Wrapper data-cy="emergency"> <Alert type="warning" icon> {emergency} </Alert> </Wrapper> ); export default Emergency;