mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 23:38:27 +00:00
* Feat: added integration connect and mcp oAuth * Feat: add mcp support to chat * Fix: UI for integrations and logs * Fix: ui * Fix: proxy server * Feat: enhance MCP tool integration and loading functionality * Fix: added header * Fix: Linear integration sync --------- Co-authored-by: Manoj K <saimanoj58@gmail.com>
32 lines
605 B
TypeScript
32 lines
605 B
TypeScript
import {
|
|
RiDiscordFill,
|
|
RiGithubFill,
|
|
RiMailFill,
|
|
RiSlackFill,
|
|
} from "@remixicon/react";
|
|
import { LayoutGrid } from "lucide-react";
|
|
import { LinearIcon, SlackIcon } from "./icons";
|
|
|
|
export const ICON_MAPPING = {
|
|
slack: SlackIcon,
|
|
email: RiMailFill,
|
|
discord: RiDiscordFill,
|
|
github: RiGithubFill,
|
|
|
|
gmail: RiMailFill,
|
|
linear: LinearIcon,
|
|
|
|
// Default icon
|
|
integration: LayoutGrid,
|
|
};
|
|
|
|
export type IconType = keyof typeof ICON_MAPPING;
|
|
|
|
export function getIcon(icon: IconType) {
|
|
if (icon in ICON_MAPPING) {
|
|
return ICON_MAPPING[icon];
|
|
}
|
|
|
|
return ICON_MAPPING["integration"];
|
|
}
|