import { Box, Typography } from '@material-ui/core' import { ReactElement } from 'react' import X from 'remixicon-react/CloseLineIcon' import Trash from 'remixicon-react/DeleteBin7LineIcon' import ExpandableListItemActions from '../../components/ExpandableListItemActions' import { SwarmButton } from '../../components/SwarmButton' import { SwarmDialog } from '../../components/SwarmDialog' import { TitleWithClose } from '../../components/TitleWithClose' import { Identity } from '../../providers/Feeds' interface Props { identity: Identity onConfirm: (identity: Identity) => void onClose: () => void } export function DeleteFeedDialog({ identity, onConfirm, onClose }: Props): ReactElement { return ( Delete {`You are about to delete feed ${identity.name} Website. It is strongly advised to export this feed first.`} onConfirm(identity)}> Delete Cancel ) }