#pragma once

#include "foundation/result.h"

#include <string>
#include <string_view>

namespace pp::app {

enum class DocumentOpenKind {
    import_abr,
    import_ppbr,
    open_project,
};

struct DocumentOpenRoute {
    DocumentOpenKind kind = DocumentOpenKind::open_project;
    std::string path;
    std::string directory;
    std::string name;
    std::string extension;
};

[[nodiscard]] pp::foundation::Result<DocumentOpenRoute> classify_document_open_path(
    std::string_view path);

}
