31 lines
544 B
TypeScript
31 lines
544 B
TypeScript
import './footer.less';
|
|
import TerminalTabs from './tabs';
|
|
|
|
export interface TerminalModalProps {
|
|
terminals: { url: string; name: string }[];
|
|
height: number;
|
|
open: boolean;
|
|
onClose: () => void;
|
|
currentActive?: string;
|
|
}
|
|
|
|
const TerminalModal: React.FC<TerminalModalProps> = ({
|
|
terminals,
|
|
height,
|
|
open,
|
|
onClose,
|
|
currentActive
|
|
}) => {
|
|
return (
|
|
<div>
|
|
<TerminalTabs
|
|
terminals={terminals}
|
|
height={height}
|
|
currentActive={currentActive}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default TerminalModal;
|