You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
535 B
23 lines
535 B
import React, { FC } from 'react'
|
|
import { Link } from 'react-router-dom'
|
|
|
|
import { Group } from 'src/types'
|
|
|
|
import GroupInfo from 'src/components/group-info'
|
|
|
|
interface Props {
|
|
group: Group
|
|
}
|
|
|
|
const GroupListItem: FC<Props> = ({ group }) => (
|
|
<div className="group-list-item">
|
|
<Link to={`/c/${group.id}/register`} className="title has-text-primary">{group.name}</Link>
|
|
|
|
{group.about && <p>{group.about}</p>}
|
|
<br /><br />
|
|
|
|
<GroupInfo group={group} />
|
|
</div>
|
|
)
|
|
|
|
export default GroupListItem
|