alert before clean recycle.bin

This commit is contained in:
Julian Freeman
2026-04-17 12:10:24 -04:00
parent 8764af1a56
commit 54b8701644
3 changed files with 35 additions and 5 deletions

View File

@@ -1,13 +1,17 @@
<script setup lang="ts">
import { useFastClean } from "../composables/useFastClean";
import type { AlertOptions } from "../types/cleaner";
import type { AlertOptions, ConfirmOptions } from "../types/cleaner";
import { splitSize, formatItemSize } from "../utils/format";
const props = defineProps<{
showAlert: (options: AlertOptions) => void;
requestConfirm: (options: ConfirmOptions) => Promise<boolean>;
}>();
const { state, selectedStats, startScan, startClean, reset } = useFastClean(props.showAlert);
const { state, selectedStats, startScan, startClean, reset } = useFastClean(
props.showAlert,
props.requestConfirm,
);
</script>
<template>