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

10 lines
252 B
JavaScript
Raw Normal View History

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,
}