import React from 'react' import withDefaults from '../utils/with-defaults' import useTheme from '../use-theme' export interface Props { href?: string block?: boolean // used by footer-foot className?: string } const defaultProps = { href: '', block: false, className: '' } type NativeAttrs = Omit, keyof Props> export type FooterLinkProps = Props & typeof defaultProps & NativeAttrs const FooterLink = React.forwardRef>( ({ href, block, children, className, ...props }, ref: React.Ref) => { const theme = useTheme() const linkColor = 'inherit' const hoverColor = theme.palette.successLight return ( {children} ) } ) const MemoFooterLink = React.memo(FooterLink) export default withDefaults(MemoFooterLink, defaultProps)