overleaf/services/web/frontend/js/features/file-tree/components/file-tree-create/danger-message.js

11 lines
278 B
JavaScript
Raw Normal View History

import React from 'react'
import PropTypes from 'prop-types'
import { Alert } from 'react-bootstrap'
export default function DangerMessage({ children }) {
return <Alert bsStyle="danger">{children}</Alert>
}
DangerMessage.propTypes = {
children: PropTypes.any.isRequired,
}