import { getCommunityDefinition } from '@/lib/event' import { Event } from 'nostr-tools' import { useMemo } from 'react' import ClientSelect from '../ClientSelect' import Image from '../Image' export default function CommunityDefinition({ event, className }: { event: Event className?: string }) { const metadata = useMemo(() => getCommunityDefinition(event), [event]) const communityNameComponent = (