import React, { PropsWithChildren } from 'react'; import styles from './styles.module.scss'; import clsx from 'clsx'; export default function Badges({ definitions, children }: PropsWithChildren<{ definitions: Array<{ label: string; title?: string } | null | false>; }>) { return (
{children}
{definitions .filter((d) => !!d) .map(({ label, title }: { label: string; title?: string }) => (
{label}
))}
); }