import type { ElementType, FC, HTMLAttributes } from 'react';
import classNames from 'classnames';
import React from 'react';

export interface TagProps extends HTMLAttributes<HTMLElement> {
  tag?: ElementType;
}

const Tag: FC<TagProps> = ({ className, tag: HtmlTag = 'div' }) => (
  <HtmlTag className={classNames('tag', className)} data-testid="Tag" />
);

export default Tag;
