openreplay/frontend/app/components/shared/SessionsTabOverview/components/SessionSettingButton/SessionSettingButton.tsx
Delirium 968a3eefde
ui: migrating old components -> ant (#3060)
* ui: migrating old components -> ant

* ui: moving input, tooltip, toggler, checkbox... -> Toggler\s*(.)? from 'UI

* ui: more components moved

* ui: move popover to ant
2025-02-24 16:11:44 +01:00

23 lines
700 B
TypeScript

import { useModal } from 'App/components/Modal';
import React from 'react';
import SessionSettings from 'Shared/SessionSettings';
import { Icon, Tooltip } from 'UI';
import { Button } from 'antd'
function SessionSettingButton(props: any) {
const { showModal } = useModal();
const handleClick = () => {
showModal(<SessionSettings />, { right: true, width: 450 });
};
return (
<div className="cursor-pointer ml-4" onClick={handleClick}>
<Tooltip title="Session Settings">
<Button icon={<Icon name={'sliders'} />} type="text" id="btn-session-settings" />
</Tooltip>
</div>
);
}
export default SessionSettingButton;