2024-12-22 17:27:09 -05:00
|
|
|
import {
|
|
|
|
Body,
|
|
|
|
Head,
|
|
|
|
Html,
|
|
|
|
Preview,
|
|
|
|
Tailwind
|
|
|
|
} from "@react-email/components";
|
|
|
|
import * as React from "react";
|
2025-01-04 20:22:01 -05:00
|
|
|
import { themeColors } from "./lib/theme";
|
|
|
|
import {
|
|
|
|
EmailContainer,
|
|
|
|
EmailFooter,
|
|
|
|
EmailGreeting,
|
|
|
|
EmailHeading,
|
|
|
|
EmailLetterHead,
|
|
|
|
EmailText
|
|
|
|
} from "./components/Email";
|
2024-12-22 17:27:09 -05:00
|
|
|
|
|
|
|
interface Props {
|
|
|
|
email: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const ConfirmPasswordReset = ({ email }: Props) => {
|
|
|
|
const previewText = `Your password has been reset`;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Html>
|
|
|
|
<Head />
|
|
|
|
<Preview>{previewText}</Preview>
|
2025-01-04 20:22:01 -05:00
|
|
|
<Tailwind config={themeColors}>
|
2024-12-30 23:41:06 -05:00
|
|
|
<Body className="font-sans relative">
|
2025-01-04 20:22:01 -05:00
|
|
|
<EmailContainer>
|
|
|
|
<EmailLetterHead />
|
|
|
|
|
|
|
|
<EmailHeading>Password Reset Confirmation</EmailHeading>
|
|
|
|
|
|
|
|
<EmailGreeting>Hi {email || "there"},</EmailGreeting>
|
2024-12-30 23:41:06 -05:00
|
|
|
|
2025-01-04 20:22:01 -05:00
|
|
|
<EmailText>
|
2024-12-22 17:27:09 -05:00
|
|
|
This email confirms that your password has just been
|
|
|
|
reset. If you made this change, no further action is
|
|
|
|
required.
|
2025-01-04 20:22:01 -05:00
|
|
|
</EmailText>
|
|
|
|
|
|
|
|
<EmailText>
|
2024-12-22 17:27:09 -05:00
|
|
|
Thank you for keeping your account secure.
|
2025-01-04 20:22:01 -05:00
|
|
|
</EmailText>
|
|
|
|
|
|
|
|
<EmailFooter>
|
2024-12-22 17:27:09 -05:00
|
|
|
Best regards,
|
|
|
|
<br />
|
|
|
|
Fossorial
|
2025-01-04 20:22:01 -05:00
|
|
|
</EmailFooter>
|
|
|
|
</EmailContainer>
|
2024-12-22 17:27:09 -05:00
|
|
|
</Body>
|
|
|
|
</Tailwind>
|
|
|
|
</Html>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ConfirmPasswordReset;
|