import PropTypes from 'prop-types'; interface Props { context: 'info' | 'success' | 'warning' | 'danger'; children: any; } export const Alert = ({ context, children }: Props) => { return
{children}
; }; Alert.propTypes = { children: PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.element), PropTypes.element.isRequired, ]), context: PropTypes.string, };