public function buildContents(Context $context, array $bodies, string $salesChannelId): array
    {
        $mailHeaderFooter = $this->findSalesChannel($context, $salesChannelId)->getMailHeaderFooter();
        if ($mailHeaderFooter !== null) {
            return [
                'text/plain' => $mailHeaderFooter->getHeaderPlain() . $bodies['text/plain'] . $mailHeaderFooter->getFooterPlain(),
                'text/html' => $mailHeaderFooter->getHeaderHtml() . $bodies['text/html'] . $mailHeaderFooter->getFooterHtml(),
            ];
        }

        return $bodies;
    }