import { FunctionComponent } from 'react';
import ServiceCard from '@patternfly/react-component-groups/dist/dynamic/ServiceCard';
import pageHeaderIcon from '../../assets/icons/page-header-icon.svg';
import { Button, ButtonVariant } from '@patternfly/react-core';

export const BasicExample: FunctionComponent = () => (
  <ServiceCard
    title="PatternFly"
    subtitle="Component groups"
    description="This is a sample service description"
    icon={<img src={pageHeaderIcon} alt="page-header-icon" />}
    helperText="Here is helper text"
    footer={
      <>
        <Button
          variant={ButtonVariant.secondary}
          className="pf-v6-u-mr-md"
          component="a"
          href="https://patternfly.org"
          target="_blank"
        >
          Launch
        </Button>
        <Button variant={ButtonVariant.link} component="a" href="https://patternfly.org" target="_blank">
          Learn more
        </Button>
      </>
    }
  />
);
