import { jsx as _jsx } from "react/jsx-runtime";
import { DangerZone as BaseDangerZone } from "@powerhousedao/design-system/connect";
import { deleteDrive, setSelectedDrive, showPHModal, useDrives, } from "@powerhousedao/reactor-browser";
export const DangerZone = () => {
    const drives = useDrives();
    const handleDeleteDrive = async (drive) => {
        await deleteDrive(drive.header.id);
        setSelectedDrive(undefined);
    };
    const handleClearStorage = () => {
        showPHModal({ type: "clearStorage" });
    };
    return (_jsx(BaseDangerZone, { drives: drives ?? [], onDeleteDrive: handleDeleteDrive, onClearStorage: handleClearStorage }));
};
//# sourceMappingURL=danger-zone.js.map