Luminate/Sources/LuminateCore/Page.swift

20 lines
468 B
Swift

//
// Page.swift
// Luminate
//
// Created by Brendan Szymanski on 6/11/26.
//
public enum Page: CustomStringConvertible {
case library(item: Components.Schemas.BaseItemDto)
case folder(title: String, items: [Components.Schemas.BaseItemDto])
public var description: String {
switch self {
case .library(let item):
return item.name ?? "Library"
case .folder(let title, _):
return title
}
}
}