()
| 63 | }; |
| 64 | |
| 65 | export default function Page() { |
| 66 | const result = useTypedLoaderData<typeof loader>(); |
| 67 | |
| 68 | return ( |
| 69 | <AppContainer> |
| 70 | <MainCenteredContainer className="max-w-[22rem]"> |
| 71 | {result.success ? ( |
| 72 | <div> |
| 73 | <FormTitle LeadingIcon="envelope" title="Unsubscribed" /> |
| 74 | <Paragraph spacing> |
| 75 | You have unsubscribed from onboarding emails, {result.email}. |
| 76 | </Paragraph> |
| 77 | <LinkButton variant="primary/medium" to={rootPath()}> |
| 78 | Dashboard |
| 79 | </LinkButton> |
| 80 | </div> |
| 81 | ) : ( |
| 82 | <div> |
| 83 | <FormTitle LeadingIcon="envelope" title="Unsubscribe failed" /> |
| 84 | <Paragraph spacing>{result.message}</Paragraph> |
| 85 | <Paragraph spacing> |
| 86 | If you believe this is a bug, please{" "} |
| 87 | <TextLink href="https://trigger.dev/contact">contact support</TextLink>. |
| 88 | </Paragraph> |
| 89 | <LinkButton variant="primary/medium" to={rootPath()}> |
| 90 | Dashboard |
| 91 | </LinkButton> |
| 92 | </div> |
| 93 | )} |
| 94 | </MainCenteredContainer> |
| 95 | </AppContainer> |
| 96 | ); |
| 97 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…