import { Link, LinkProps } from '@metafam/ds'; import type { PropsWithChildren } from 'react'; type LinkGuildProps = PropsWithChildren<{ daoURL: string | null; guildname: string | undefined | null; }>; export const LinkGuild: React.FC = ({ daoURL, guildname, children, }) => { if (guildname != null) { return ; } if (daoURL != null) { return ; } return <>{children}; }; type InternalGuildLinkProps = PropsWithChildren<{ guildName: string; }>; export const InternalGuildLink: React.FC = ({ guildName, children, }) => ( {children} ); type DaoHausLinkProps = { daoURL: string | null; }; export const ExternalDaoLink: React.FC = ({ daoURL, children, _hover = {}, ...props }) => { _hover.textDecoration = 'none'; // eslint-disable-line no-param-reassign if (daoURL != null) { return ( {children} ); } return <>{children}; };