export const RequestStashDropDialog: React.FC = () => {
    const dialog = useDialog();
    return dialog.type === 'request-stash-drop' ? (
        <Modal isOpen={true}>
            <StyledDialog>
                <div>Delete stash &quot;{dialog.stash.message}&quot; from the repository?</div>
                <ButtonGroup>
                    <StyledButton
                        onClick={() => {
                            dropStash(dialog.stash);
                            dialog.close();
                        }}>
                        Delete
                    </StyledButton>