import * as React from 'react';
import Thumbnail from '..';
import { thumbnailTestkitFactory } from '../../../testkit';
import { thumbnailTestkitFactory as thumbnailEnzymeTestkitFactory } from '../../../testkit/enzyme';
import { thumbnailTestkitFactory as thumbnailPuppeteerTestkitFactory } from '../../../testkit/puppeteer';
import * as enzyme from 'enzyme';
import * as puppeteer from 'puppeteer';

function ThumbnailWithMandatoryProps() {
  return <Thumbnail />;
}

function ThumbnailWithAllProps() {
  return (
    <Thumbnail
      dataHook="hook"
      className="test"
      size="small"
      title="title"
      description={<div>desc</div>}
      image={<div>image</div>}
      selected
      disabled
      hideSelectedIcon
      backgroundImage={<div />}
      onClick={_ev => {}}
      width="10px"
      height="10px"
      contentAlignment="center"
    />
  );
}

async function testkits() {
  const testkit = thumbnailTestkitFactory({
    dataHook: 'hook',
    wrapper: document.createElement('div'),
  });

  const enzymeTestkit = thumbnailEnzymeTestkitFactory({
    dataHook: 'hook',
    wrapper: enzyme.mount(<div />),
  });

  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  const puppeteerTestkit = await thumbnailPuppeteerTestkitFactory({
    dataHook: 'hook',
    page,
  });
}
