openreplay/frontend/app/components/shared/Insights/SankeyChart/NodeDropdown.tsx
Андрей Бабушкин 2b1a9f3378 add locales and lint the project
2025-03-05 16:09:18 +01:00

25 lines
543 B
TypeScript

import React from 'react';
import { Select } from 'antd';
import { useTranslation } from 'react-i18next';
interface Props {
payload: any;
}
function NodeDropdown(props: Props) {
const { t } = useTranslation();
return (
<Select
style={{ width: 120 }}
placeholder={t('Select Event')}
dropdownStyle={{
border: 'none',
}}
>
<Select.Option value="jack">{t('Jack')}</Select.Option>
<Select.Option value="lucy">{t('Lucy')}</Select.Option>
</Select>
);
}
export default NodeDropdown;