public function build()
    {
        if (isset($this->component)) {
            return $this->component;
        }

        $this->component = BuildUtil::removeNullElements([
            'type' => ComponentType::TEXT,
            'text' => $this->text,
            'flex' => $this->flex,
            'margin' => $this->margin,
            'size' => $this->size,
            'align' => $this->align,
            'gravity' => $this->gravity,
            'wrap' => $this->wrap,
            'maxLines' => $this->maxLines,
            'weight' => $this->weight,
            'color' => $this->color,
            'action' => BuildUtil::build($this->actionBuilder, 'buildTemplateAction'),
        ]);

        return $this->component;
    }