import React from 'react'; import { Radio, Tooltip } from 'antd'; import { useTranslation } from 'react-i18next'; import { DesktopOutlined, TabletOutlined, MobileOutlined, } from '@ant-design/icons'; import styles from './ChartViewSwitcher.module.less'; interface Prop { updateView: (val: string) => void; view: string; } const ChartViewSwitcher: React.FC = ({ updateView, view }) => { const { t } = useTranslation(); const onChange = (e: any) => { updateView(e.target.value); const resize = new Event('resize'); window.dispatchEvent(resize); }; return ( ); }; export default ChartViewSwitcher;