diff --git a/src/read-side/html-pages/shared-components/head/client-classification.ts b/src/read-side/html-pages/shared-components/head/client-classification.ts new file mode 100644 index 000000000..843e05944 --- /dev/null +++ b/src/read-side/html-pages/shared-components/head/client-classification.ts @@ -0,0 +1,3 @@ +export type ClientClassification = { + userAgent: string | undefined, +}; diff --git a/src/read-side/html-pages/shared-components/head/head.ts b/src/read-side/html-pages/shared-components/head/head.ts index 0d8b4792e..03e9048b6 100644 --- a/src/read-side/html-pages/shared-components/head/head.ts +++ b/src/read-side/html-pages/shared-components/head/head.ts @@ -1,15 +1,12 @@ import { htmlEscape } from 'escape-goat'; import * as O from 'fp-ts/Option'; import { pipe } from 'fp-ts/function'; +import { ClientClassification } from './client-classification'; import { fathom, googleTagManager } from '../../../../shared-components/analytics'; import { HtmlFragment, toHtmlFragment } from '../../../../types/html-fragment'; import { UserId } from '../../../../types/user-id'; import { HtmlPageHead } from '../../html-page'; -export type ClientClassification = { - userAgent: string | undefined, -}; - export type DynamicHeadViewModel = HtmlPageHead & { clientClassification: ClientClassification, }; diff --git a/src/read-side/html-pages/shared-components/head/index.ts b/src/read-side/html-pages/shared-components/head/index.ts index 934c86723..1a9b61fde 100644 --- a/src/read-side/html-pages/shared-components/head/index.ts +++ b/src/read-side/html-pages/shared-components/head/index.ts @@ -1 +1,2 @@ -export { ClientClassification, DynamicHeadViewModel, head } from './head'; +export { DynamicHeadViewModel, head } from './head'; +export { ClientClassification } from './client-classification';