// @flow import React from 'react'; import Button from 'component/button'; import ClaimPreview from 'component/claimPreview'; import Card from 'component/common/card'; import { FormField } from 'component/common/form-components/form-field'; import { Modal } from 'modal/modal'; type Props = { uri: string, onConfirm: (hideChannel: boolean) => void, doHideModal: () => void, }; export default function ModalHideRecommendation(props: Props) { const { uri, onConfirm, doHideModal } = props; const [hideChannel, setHideChannel] = React.useState(false); function handleOnClick() { if (onConfirm) { onConfirm(hideChannel); } doHideModal(); } return ( } actions={ <>
setHideChannel(!hideChannel)} />
} />
); }