mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-14 21:23:40 +01:00
24 lines
621 B
TypeScript
24 lines
621 B
TypeScript
import type { CSSProperties } from 'react';
|
|
import React from 'react';
|
|
import { SplitLayout } from './core/SplitLayout';
|
|
import { RequestPane } from './RequestPane';
|
|
import { ResponsePane } from './ResponsePane';
|
|
|
|
interface Props {
|
|
style: CSSProperties;
|
|
}
|
|
|
|
export function HttpRequestLayout({ style }: Props) {
|
|
return (
|
|
<SplitLayout
|
|
name="http_layout"
|
|
className="p-3"
|
|
style={style}
|
|
leftSlot={({ orientation, style }) => (
|
|
<RequestPane style={style} fullHeight={orientation === 'horizontal'} />
|
|
)}
|
|
rightSlot={({ style }) => <ResponsePane style={style} />}
|
|
/>
|
|
);
|
|
}
|