Files
outline/plugins/slack/server/presenters/userNotLinkedBlocks.ts
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

39 lines
926 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { t } from "i18next";
import type { Team } from "@server/models";
import { opts } from "@server/utils/i18n";
import env from "../env";
export function presentUserNotLinkedBlocks(team?: Team) {
const appName = env.APP_NAME;
return [
{
type: "section",
text: {
type: "mrkdwn",
text:
t(
`It looks like you haven’t linked your {{ appName }} account to Slack yet`,
{
...opts(),
appName,
}
) +
". " +
(team
? `<${team.url}/settings/integrations/slack|${t(
"Link your account",
opts()
)}>`
: t(
"Link your account in {{ appName }} settings to search from Slack",
{
...opts(),
appName,
}
)),
},
},
];
}