import React, { ReactNode, FC } from 'react'; import classnames from 'classnames'; import './ShopLinks.scss'; interface Props { className?: string; title?: string; children: ReactNode; forwardedRef: React.Ref; } const __ShopLinks__: FC = ({ className = '', title = '', children, forwardedRef, }) => { return (
{title &&
{title}
} {children}
); }; export const ShopLinks = React.forwardRef( (props: Props, ref: React.Ref) => ( <__ShopLinks__ {...props} forwardedRef={ref} /> ), ); ShopLinks.displayName = 'ShopLinks';