package file

import (
	"codeberg.org/mapleopentech/monorepo/native/desktop/maplefile/internal/domain/file"
)

type DeleteUseCase struct {
	fileRepo file.Repository
}

// ProvideDeleteUseCase creates the use case for Wire
func ProvideDeleteUseCase(fileRepo file.Repository) *DeleteUseCase {
	return &DeleteUseCase{fileRepo: fileRepo}
}

// Execute deletes a file by ID
func (uc *DeleteUseCase) Execute(id string) error {
	return uc.fileRepo.Delete(id)
}
