Refactored UI endpoint usage

This commit is contained in:
2026-09-20 08:26:06 +02:00
parent b703b0c64d
commit 5829bffaa0
35 changed files with 17482 additions and 648 deletions
@@ -1,11 +1,13 @@
import React, { ReactNode, useEffect } from 'react';
import { X } from 'lucide-react';
import { HelpTooltip } from './HelpTooltip';
interface ModalProps {
isOpen: boolean;
onClose: () => void;
title: string;
subtitle?: string;
helpText?: ReactNode;
children: ReactNode;
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
}
@@ -15,6 +17,7 @@ export const Modal: React.FC<ModalProps> = ({
onClose,
title,
subtitle,
helpText,
children,
maxWidth = 'lg',
}) => {
@@ -56,7 +59,17 @@ export const Modal: React.FC<ModalProps> = ({
>
<div className="flex items-start justify-between p-5 border-b border-slate-800/80 bg-[#0d121f]/90">
<div>
<h3 className="text-lg font-semibold text-white tracking-tight">{title}</h3>
<div className="flex items-center gap-2">
<h3 className="text-lg font-semibold text-white tracking-tight">{title}</h3>
{helpText && (
<HelpTooltip
title={`${title} Guidance`}
content={helpText}
size="sm"
placement="bottom"
/>
)}
</div>
{subtitle && <p className="text-xs text-slate-400 mt-0.5">{subtitle}</p>}
</div>
<button