// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
import type * as RequestLinkIconModule from '../../../../ui/components/request_link_icon/request_link_icon.js';
import * as ComponentHelpers from '../../helpers/helpers.js';

await ComponentHelpers.ComponentServerSetup.setup();
await FrontendHelpers.initializeGlobalVars();

const RequestLinkIcon: typeof RequestLinkIconModule =
    await import('../../../../ui/components/request_link_icon/request_link_icon.js');

function appendComponent(data: RequestLinkIconModule.RequestLinkIcon.RequestLinkIconData) {
  const component = new RequestLinkIcon.RequestLinkIcon.RequestLinkIcon();
  component.data = data;
  document.getElementById('container')?.appendChild(component);
}

appendComponent({});
