mirror of
https://github.com/charmbracelet/crush.git
synced 2026-05-30 18:47:33 +00:00
12 lines
198 B
Go
12 lines
198 B
Go
package common
|
|
|
|
import (
|
|
tea "charm.land/bubbletea/v2"
|
|
)
|
|
|
|
// Model represents a common interface for UI components.
|
|
type Model[T any] interface {
|
|
Update(msg tea.Msg) (T, tea.Cmd)
|
|
View() string
|
|
}
|