in src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/dashboard/fix/leaked-passwords/leakedPasswordsData.tsx [54:116]
function getDoneStepContent(
l10n: ExtendedReactLocalization,
nextStep: StepLink,
): { summary: string; description: ReactNode } {
// Security questions next
if (nextStep.id === "LeakedPasswordsSecurityQuestion") {
return {
summary: "",
description: (
<>
<p>
{l10n.getString(
"fix-flow-celebration-leaked-passwords-description-next-security-questions",
)}
</p>
<Button variant="primary" small href={nextStep.href} autoFocus={true}>
{l10n.getString("fix-flow-celebration-next-label")}
</Button>
</>
),
};
}
// Security tips next
if (
["SecurityTipsPhone", "SecurityTipsEmail", "SecurityTipsIp"].includes(
nextStep.id,
)
) {
return {
summary: "",
description: (
<>
<p>
{l10n.getString(
"fix-flow-celebration-leaked-passwords-description-next-security-recommendations",
)}
</p>
<Button variant="primary" small href={nextStep.href} autoFocus={true}>
{l10n.getString("fix-flow-celebration-next-recommendations-label")}
</Button>
</>
),
};
}
// No next steps
return {
summary: "",
description: (
<>
<p>
{l10n.getString(
"fix-flow-celebration-leaked-passwords-description-next-dashboard",
)}
</p>
<Button variant="primary" small href={nextStep.href} autoFocus={true}>
{l10n.getString("fix-flow-celebration-next-dashboard-label")}
</Button>
</>
),
};
}