openreplay/frontend/app/components/Client/Sites/InstallButton/InstallButton.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

25 lines
715 B
TypeScript

import { useModal } from 'App/components/Modal';
import React from 'react';
import TrackingCodeModal from 'Shared/TrackingCodeModal';
import { Button } from 'antd';
interface Props {
site: any;
}
function InstallButton(props: Props) {
const { site } = props;
const { showModal, hideModal } = useModal();
const onClick = () => {
showModal(
<TrackingCodeModal title="Tracking Code" subTitle={`(Unique to ${site.host})`} onClose={hideModal} site={site} />,
{ right: true, width: 700 }
);
};
return (
<Button size="small" type="text" onClick={onClick}>
{'Installation Steps'}
</Button>
);
}
export default InstallButton;