overleaf/services/web/frontend/js/features/pdf-preview/components/rich-text-survey-inner.tsx
Alf Eaton 25725bd79f Add Rich Text survey message in PDF preview pane (#9423)
GitOrigin-RevId: e190ae569d5e2390e8bcf52672757cc7f269ea56
2022-09-02 08:04:41 +00:00

36 lines
985 B
TypeScript

import { Button } from 'react-bootstrap'
import { FC, MouseEventHandler } from 'react'
export const RichTextSurveyInner: FC<{
handleDismiss: MouseEventHandler<Button>
openSurvey: () => void
}> = ({ handleDismiss, openSurvey }) => (
<div className="alert alert-success rich-text-survey-warning" role="alert">
<Button
className="close"
data-dismiss="alert"
aria-label="Close"
onClick={handleDismiss}
>
<span aria-hidden="true">&times;</span>
</Button>
<div className="warning-content">
<div>
<div className="warning-text">Have you used Rich Text mode?</div>
<div className="warning-text">
Please participate in our short survey.
</div>
</div>
<div className="upgrade-prompt">
<Button
type="button"
bsSize="sm"
bsStyle="primary"
onClick={openSurvey}
>
Take survey
</Button>
</div>
</div>
</div>
)