19 lines
545 B
Swift
19 lines
545 B
Swift
import Elementary
|
|
|
|
enum Img {
|
|
@Sendable
|
|
static func spinner(width: Int = 30, height: Int = 30) -> some HTML<HTMLTag.img> {
|
|
img(.src("/images/spinner.svg"), .width(width), .height(height))
|
|
}
|
|
|
|
@Sendable
|
|
static func search(width: Int = 30, height: Int = 30) -> some HTML<HTMLTag.img> {
|
|
img(.src("/images/search.svg"), .width(width), .height(height))
|
|
}
|
|
|
|
@Sendable
|
|
static func trashCan(width: Int = 30, height: Int = 30) -> some HTML<HTMLTag.img> {
|
|
img(.src("/images/trash-can.svg"), .width(width), .height(height))
|
|
}
|
|
}
|