import React from "react"; import Typography from "components/typography/Typography"; import { SVGKey } from "components/icons"; import { RouterLink } from "components/typography/RouterLink"; import classNames from "classnames"; type KeywordsProps = { children?: React.ReactNode; className?: string; emphasis?: "low" | "high"; linkTo?: string; }; export function ArticleKeywords({ children, className, emphasis = "high", linkTo = "#", }: KeywordsProps) { const keywords = React.Children.map(children, (keyword, i) => { return (
{keyword} {i != React.Children.count(children) - 1 && emphasis === "low" ? "," : null}
); }); return (
{emphasis === "low" ? ( ) : null}
{keywords}
); } ArticleKeywords.displayName = "ArticleKeywords";