/** @jsxImportSource theme-ui */ export const badges = [ { label: 'Transparent', id: 'Transparent', tooltip: 'Transparent', color: 'purple', icon: 'explore', match: org => org.isTransparent } ] badges.__proto__.forOrg = function (org) { return this.filter(badge => badge.match?.(org)) } import { Badge as ThemeBadge, Box, Container, Flex, Grid, Heading, Input } from 'theme-ui' import { Text, Button, Card } from 'theme-ui' import Icon from '@hackclub/icons' import OrganizationCard, { Badge } from './fiscal-sponsorship/directory/card' import Tooltip from './fiscal-sponsorship/tooltip' export function OrganizationModal({ organization, onClose }) { return ( { e.stopPropagation() }} > {organization.branding.logo && ( {`${organization.name}'s )} {organization.name} {organization.location.country} {/* Badges */} {/* hardcoded "nonprofit" badge */} Nonprofit {organization.raw.transparent && ( Transparent )} {/* info & buttons */} {organization.branding.description && ( {organization.branding.description} )} {organization.links.website && ( Website )} {organization.links.financials && ( Transparent Finances )} All donations are tax-deductible. ) }