1package common
 2
 3import (
 4	"github.com/aymanbagabas/go-osc52"
 5	"github.com/charmbracelet/soft-serve/ui/keymap"
 6	"github.com/charmbracelet/soft-serve/ui/styles"
 7)
 8
 9// Common is a struct all components should embed.
10type Common struct {
11	Copy   *osc52.Output
12	Styles *styles.Styles
13	KeyMap *keymap.KeyMap
14	Width  int
15	Height int
16}
17
18// SetSize sets the width and height of the common struct.
19func (c *Common) SetSize(width, height int) {
20	c.Width = width
21	c.Height = height
22}