Harshith Mullapudi 038acea669
Feat: added integration connect and mcp oAuth (#20)
* 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>
2025-07-17 12:41:32 +05:30

34 lines
811 B
TypeScript

interface SectionProps {
icon?: React.ReactNode;
title: string;
description: string;
metadata?: React.ReactNode;
children: React.ReactNode;
}
export function Section({
icon,
title,
description,
metadata,
children,
}: SectionProps) {
return (
<div className="flex h-full gap-6">
<div className="flex w-[400px] shrink-0 flex-col">
{icon && <>{icon}</>}
<h3 className="text-lg"> {title} </h3>
<p className="text-muted-foreground">{description}</p>
{metadata ? metadata : null}
</div>
<div className="grow">
<div className="flex h-full w-full justify-end overflow-auto">
<div className="flex h-full max-w-[76ch] grow flex-col gap-2">
{children}
</div>
</div>
</div>
</div>
);
}