20 lines
472 B
Swift
20 lines
472 B
Swift
//
|
|
// Page.swift
|
|
// LuminateCore
|
|
//
|
|
// 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
|
|
}
|
|
}
|
|
}
|