import { BuildKey } from "@/utilities"; import { Badge, BadgeProps, Group, GroupProps } from "@mantine/core"; import { FunctionComponent } from "react"; export type AudioListProps = GroupProps & { audios: Language.Info[]; badgeProps?: BadgeProps<"div">; }; const AudioList: FunctionComponent = ({ audios, badgeProps, ...group }) => { return ( {audios.map((audio, idx) => ( {audio.name} ))} ); }; export default AudioList;