Files
outline/server/emails/templates/components/Header.tsx
Tom Moor 075555a867 fix: Do not show actively disabled auth providers in self-hosted install (#4794)
* fix: Do not show actively disabled auth providers in self-hosted installation

* self review

* Refactor for easier mocking
2023-01-28 10:02:25 -08:00

31 lines
671 B
TypeScript

import { Table, TBody, TR, TD } from "oy-vey";
import * as React from "react";
import env from "@server/env";
import EmptySpace from "./EmptySpace";
const url = env.CDN_URL ?? env.URL;
export default () => {
return (
<Table width="100%">
<TBody>
<TR>
<TD>
<EmptySpace height={40} />
<img
alt={env.APP_NAME}
src={
env.isCloudHosted()
? `${url}/email/header-logo.png`
: "cid:header-image"
}
height="48"
width="48"
/>
</TD>
</TR>
</TBody>
</Table>
);
};