({
channelName,
accountId,
type,
action = 'Setup',
}: {
channelName: string;
accountId: string | null;
type: 'email' | 'github' | 'linear';
action?: 'Setup' | 'Remove';
})
| 233 | } |
| 234 | |
| 235 | function 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: ` |
| 249 | Integration: ${type} |
| 250 | Channel: ${channelName} |
| 251 | Community: ${accountId} |
| 252 | `, |
| 253 | }; |
| 254 | window.location.href = `mailto:help@linen.dev?${qs(params)}`; |
| 255 | } |
| 256 | |
| 257 | function showLinearDetail(integration: any): React.ReactNode { |
| 258 | const team = integration?.data?.teams?.find( |
no test coverage detected