import * as React from 'react'; import { _ } from '@joplin/lib/locale'; interface Props { children: React.ReactNode; acceptMessage: string; onAccept: ()=> void; onDismiss: ()=> void; visible: boolean; } const BannerContent: React.FC = props => { if (!props.visible) { return null; } return
{props.children}   [ {props.acceptMessage} ]   [ {_('Dismiss')} ]
; }; export default BannerContent;