kopia lustrzana https://github.com/Stopka/fedisearch
14 wiersze
465 B
TypeScript
14 wiersze
465 B
TypeScript
import React, { ReactElement } from 'react'
|
|
import { faRss, faUser } from '@fortawesome/free-solid-svg-icons'
|
|
import Badge from './Badge'
|
|
|
|
export default function FeedTypeBadge ({ type }: { type: 'account' | 'channel' }): ReactElement {
|
|
return (
|
|
<Badge faIcon={type === 'channel' ? faRss : faUser}
|
|
label={'Feed type'}
|
|
value={type === 'channel' ? 'Channel' : 'Account'}
|
|
className={'feed-type'}
|
|
/>
|
|
)
|
|
}
|