mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 16:48: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>
34 lines
811 B
TypeScript
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>
|
|
);
|
|
}
|