import React from 'react'; import { Terminal as TerminalIcon } from 'lucide-react'; interface TerminalProps { title: string; type: 'vulnerable' | 'protected'; content: string; logs?: string[]; } export const Terminal: React.FC = ({ title, type, content, logs }) => { const isProtected = type === 'protected'; const borderColor = isProtected ? 'border-blue-500/20' : 'border-slate-800'; const bgColor = isProtected ? 'bg-blue-950/5' : 'bg-slate-900/20'; const titleColor = isProtected ? 'text-blue-400' : 'text-slate-400'; return (
{isProtected && (
)}
{title}
{isProtected ? 'DETERMINISTIC' : 'UNFILTERED'}
{content || No request processed.}
{logs && logs.length > 0 && (
{logs.map((log, i) => (
{log}
))}
)}
); };