You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/frontend/src/components/bazarr/AudioList.tsx

27 lines
621 B

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<AudioListProps> = ({
audios,
badgeProps,
...group
}) => {
return (
<Group spacing="xs" {...group}>
{audios.map((audio, idx) => (
<Badge color="teal" key={BuildKey(idx, audio.code2)} {...badgeProps}>
{audio.name}
</Badge>
))}
</Group>
);
};
export default AudioList;