Stirling-PDF/frontend/src/components/tooltips/useRemovePasswordTips.ts
James Brunton acbebd67a3
Add Remove Password UI into V2 (#4214)
# Description of Changes
- Add UI for Remove Password tool
- Fix more translation warnings that were being thrown in the console
- Add an encrypted PDF thumbnail and refactor thumbnail generation code
2025-08-18 15:26:29 +01:00

21 lines
588 B
TypeScript

import { useTranslation } from 'react-i18next';
import { TooltipContent } from '../../types/tips';
export const useRemovePasswordTips = (): TooltipContent => {
const { t } = useTranslation();
return {
header: {
title: t("removePassword.title", "Remove Password")
},
tips: [
{
description: t(
"removePassword.tooltip.description",
"Removing password protection requires the current password that was used to encrypt the PDF. This will decrypt the document, making it accessible without a password."
)
}
]
};
};