webapp/src/components/Feed/CardTopic.tsx
2022-10-19 17:26:49 +03:00

21 lines
403 B
TypeScript

import style from './CardTopic.module.scss'
interface CardTopicProps {
title: string
slug: string
isFloorImportant?: boolean
}
export default (props: CardTopicProps) => {
return (
<div
class={style.shoutTopic}
classList={{
[style.shoutTopicFloorImportant]: props.isFloorImportant
}}
>
<a href={`/topic/${props.slug}`}>{props.title}</a>
</div>
)
}