20 lines
552 B
TypeScript
20 lines
552 B
TypeScript
import React, { useState } from 'react';
|
|
import { IconButton } from 'UI';
|
|
import FunnelSaveModal from 'App/components/Funnels/FunnelSaveModal';
|
|
|
|
export default function SaveFunnelButton() {
|
|
const [showModal, setshowModal] = useState(false)
|
|
return (
|
|
<div>
|
|
<IconButton
|
|
className="mr-2"
|
|
onClick={() => setshowModal(true)} primaryText label="SAVE FUNNEL" icon="funnel"
|
|
/>
|
|
|
|
<FunnelSaveModal
|
|
show={showModal}
|
|
closeHandler={() => setshowModal(false)}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|