import React from 'react';
import { Flex, Splitter, Typography } from 'antd';
import type { SplitterProps } from 'antd';
const renderDesc = (text: string) => (
{text}
);
const renderSplitter = ({ style, ...restProps }: SplitterProps) => (
{renderDesc('first')}
{renderDesc('second')}
);
const App: React.FC = () => (
{renderSplitter({
style: { height: 200 },
})}
{renderSplitter({
style: { height: 300 },
layout: 'vertical',
})}
);
export default App;