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	zone "github.com/lrstanley/bubblezone"
 8)
 9
10// Common is a struct all components should embed.
11type Common struct {
12	Copy   *osc52.Output
13	Styles *styles.Styles
14	KeyMap *keymap.KeyMap
15	Width  int
16	Height int
17	Zone   *zone.Manager
18}
19
20// SetSize sets the width and height of the common struct.
21func (c *Common) SetSize(width, height int) {
22	c.Width = width
23	c.Height = height
24}