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

10 lines
252 B
React
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,
}