2023-05-20 20:15:57 +02:00
|
|
|
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2023-04-13 00:07:08 +02:00
|
|
|
package handlers
|
|
|
|
|
|
|
|
type Iconier interface {
|
|
|
|
Img() string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Icon struct {
|
|
|
|
img string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (i *Icon) Img() string {
|
|
|
|
return i.img
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewIcon(data string) *Icon {
|
|
|
|
return &Icon{img: data}
|
|
|
|
}
|