Files
overleaf-cep/services/web/frontend/js/shared/components/ai-consent-prompt-message.tsx
T
Rebeka DekanyandCopilot Autofix powered by AI f30c23cacc Update in-product doc links to point to docs.overleaf.com (#35184)
* update doc links to point to docs.overleaf.com instead of the old learn wiki

* fix broken link to LaTeX positioning wiki article in figure modal help

* point figure positioning help link to the docs.overleaf.com page

* point figure/table label help links to specific anchors on the captioning-and-referencing-figures doc page

* point figure modal error-help link to the graphicx-loading doc page

* normalize target/rel on docs.overleaf.com links opened in a new tab

* open figure modal and SSO help links in a new tab now that they point off-site

* add eslint rule enforcing rel=noopener noreferrer on docs.overleaf.com links

* extend require-rel-for-docs-links to also check OLButton

* add lint script catching missing rel on docs.overleaf.com links in pug templates

* fix require-rel-for-docs-links autofix crash on valueless rel attribute

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* add regression test for require-rel-for-docs-links valueless-rel autofix

* revert `target=_blank` on figure modal and SSO help links

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
GitOrigin-RevId: b6111341e1080fd7e4b42f6a1a18c27ea0fd7d8c
2026-09-17 11:18:47 +00:00

60 lines
1.6 KiB
TypeScript

import React from 'react'
interface ConsentPromptMessageBodyProps {
className?: string
listClassName?: string
}
interface ConsentPromptMessageHeaderProps {
className?: string
}
export const AiConsentPromptMessageHeader = ({
className,
}: ConsentPromptMessageHeaderProps) => {
return (
<div className={className}>
Supporting your research and protecting your privacy
</div>
)
}
export const AiConsentPromptMessageBody = ({
className,
listClassName,
}: ConsentPromptMessageBodyProps) => {
return (
<div className={className}>
<ul className={listClassName}>
<li>
AI features in Overleaf, like this one, can help you with writing your
document and fixing errors.
</li>
<li>
As some AI features are powered by third parties, your project
content/data will be sent to those third parties in order to provide
those features to you. However, your project content/data will not be
used for model training. There are more details about how we use your
data in{' '}
<a
href="https://docs.overleaf.com/integrations-and-add-ons/ai-features#data-privacy-and-responsible-use"
target="_blank"
rel="noopener noreferrer"
>
our docs
</a>
.
</li>
<li>
Like any AI, AI features in Overleaf can make mistakes, so please
review all suggestions carefully before accepting them.
</li>
</ul>
<p>
By using these features, you approve the use and sharing of your data in
this way.
</p>
</div>
)
}