--- import { people } from '@shared/lib/people' import type { FlagCountry } from '@shared/lib/tokens' import Icon from '@ui/Icon.astro' import Avatar from '@ui/Avatar.astro' import Flag from '@ui/Flag.astro' import countries from '@data/countries.json' interface Props { right?: boolean show?: boolean arrow?: boolean dark?: boolean class?: string check?: boolean radio?: boolean people?: boolean flag?: boolean header?: boolean icons?: boolean badge?: boolean active?: boolean disabled?: boolean separated?: boolean } const { right, show, arrow, dark, class: className, check, radio, people: showPeople, flag: showFlags, header, icons, badge, active, disabled, separated } = Astro.props const classes = ['dropdown-menu', right && 'dropdown-menu-end', show && 'dropdown-menu-demo', arrow && 'dropdown-menu-arrow', className] const peopleItems = people.slice(0, 5) const countryItems = (countries as { name: string; flag: string }[]).slice(0, 5) ---