import { SvgIcon, Text, allureIcons } from "@allurereport/web-components"; import type { FunctionComponent } from "preact"; import type { MetadataProps } from "@/components/ReportMetadata/MetadataItem"; import * as styles from "./styles.scss"; const icons: Record = { flaky: allureIcons.lineGeneralZap, retry: allureIcons.lineArrowsRefreshCcw1, new: allureIcons.lineAlertsNotificationBox, }; export const MetadataWithIcon: FunctionComponent = ({ type, count }) => { return (
{type !== "all" && } {count}
); };