MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / emailUs

Function emailUs

apps/web/ui/IntegrationsModal/index.tsx:235–255  ·  view source on GitHub ↗
({
  channelName,
  accountId,
  type,
  action = 'Setup',
}: {
  channelName: string;
  accountId: string | null;
  type: 'email' | 'github' | 'linear';
  action?: 'Setup' | 'Remove';
})

Source from the content-addressed store, hash-verified

233}
234
235function emailUs({
236 channelName,
237 accountId,
238 type,
239 action = 'Setup',
240}: {
241 channelName: string;
242 accountId: string | null;
243 type: 'email' | 'github' | 'linear';
244 action?: 'Setup' | 'Remove';
245}) {
246 const params = {
247 subject: `${action} ${type} integration`,
248 body: `
249Integration: ${type}
250Channel: ${channelName}
251Community: ${accountId}
252`,
253 };
254 window.location.href = `mailto:help@linen.dev?${qs(params)}`;
255}
256
257function showLinearDetail(integration: any): React.ReactNode {
258 const team = integration?.data?.teams?.find(

Callers 5

onRemoveLinearClickFunction · 0.85
onGithubClickFunction · 0.85
onRemoveGithubClickFunction · 0.85
onEmailClickFunction · 0.85
onRemoveEmailClickFunction · 0.85

Calls 1

qsFunction · 0.90

Tested by

no test coverage detected