on 8ebab21 help sign in
crush/internal/ui/common/interface.go
11 lines 198 B history raw
1package common
3import (
4 tea "charm.land/bubbletea/v2"
5)
7// Model represents a common interface for UI components.
8type Model[T any] interface {
9 Update(msg tea.Msg) (T, tea.Cmd)
10 View() string