import { memo } from 'react';
import type { FC, ReactNode } from 'react';

import resets from '../../_resets.module.css';
import classes from './Me.module.css';
import { UnionIcon2 } from './UnionIcon2.js';
import { UnionIcon } from './UnionIcon.js';

interface Props {
  className?: string;
  classes?: {
    union?: string;
    root?: string;
  };
  swap?: {
    union?: ReactNode;
    union2?: ReactNode;
  };
}
/* @figmaId 5407:6889 */
export const Me: FC<Props> = memo(function Me(props = {}) {
  return (
    <div className={`${resets.storybrainResets} ${props.classes?.root || ''} ${props.className || ''} ${classes.root}`}>
      <div className={classes.union2}>{props.swap?.union || <UnionIcon className={classes.icon} />}</div>
      <div className={`${props.classes?.union || ''} ${classes.union}`}>
        {props.swap?.union2 || <UnionIcon2 className={classes.icon2} />}
      </div>
    </div>
  );
});
