import { forwardRef, type ForwardRefRenderFunction } from 'react'; import { List, ListItem, SocialLink, type SocialLinkProps, } from '../../../atoms'; import { Collapsible, type CollapsibleProps } from '../../../molecules'; export type SocialMediaData = Required< Pick >; export type SocialMediaProps = Omit & { media: SocialMediaData[]; }; const SocialMediaWidgetWithRef: ForwardRefRenderFunction< HTMLDivElement, SocialMediaProps > = ({ media, ...props }, ref) => ( {media.map(({ id, ...link }) => ( ))} ); /** * Social Media widget component * * Render a social media list with links. */ export const SocialMediaWidget = forwardRef(SocialMediaWidgetWithRef);