import React from 'react';
import {
DownOutlined,
FrownFilled,
FrownOutlined,
MehOutlined,
SmileOutlined,
} from '@ant-design/icons';
import { Tree } from 'antd';
import type { TreeDataNode } from 'antd';
const treeData: TreeDataNode[] = [
{
title: 'parent 1',
key: '0-0',
icon: ,
children: [
{
title: 'leaf',
key: '0-0-0',
icon: ,
},
{
title: 'leaf',
key: '0-0-1',
icon: ({ selected }) => (selected ? : ),
},
],
},
];
const App: React.FC = () => (
}
treeData={treeData}
/>
);
export default App;