webapp/src/components/Feed/CardTopic.tsx

21 lines
413 B
TypeScript
Raw Normal View History

2022-10-19 14:26:49 +00:00
import style from './CardTopic.module.scss'
interface CardTopicProps {
title: string
slug: string
isFloorImportant?: boolean
}
export const CardTopic = (props: CardTopicProps) => {
2022-10-19 14:26:49 +00:00
return (
<div
class={style.shoutTopic}
classList={{
[style.shoutTopicFloorImportant]: props.isFloorImportant
}}
>
<a href={`/topic/${props.slug}`}>{props.title}</a>
</div>
)
}