import React from 'react'; import { Share } from '@phosphor-icons/react'; import { PolymorphicRef } from '../../utils/Polymorphic'; import { AProps } from './A.type'; import { useA } from './useA'; import { StyledA } from './StyledA'; export const A = React.forwardRef( ( props: AProps, ref: PolymorphicRef['ref'] ): React.ReactElement => { const { domRef, as, children, styledProps, aProps, color, isShowIcon } = useA({ ...props, ref, }); return ( {isShowIcon && ( )} {children} ); } ); A.displayName = 'A';