computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
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.
29 lines
656 B
29 lines
656 B
5 years ago
|
import { Badge, BlockItem, ItemSubtitle, ItemTitle, ItemWrap } from './style';
|
||
|
|
||
|
const RowBlock = ({
|
||
|
title,
|
||
|
subtitle,
|
||
|
url,
|
||
|
badge,
|
||
|
openExternal = false,
|
||
|
disabled = false,
|
||
|
children = null
|
||
|
}) => (
|
||
|
<ItemWrap className="col-md-6 col-lg-4 col-xl-4">
|
||
|
<BlockItem href={ url } disabled={ disabled } target={openExternal ? '_blank' : '_self'}>
|
||
|
{ !children && (
|
||
|
<>
|
||
|
<ItemTitle>
|
||
|
{ title }
|
||
|
{ badge && <Badge>{ badge }</Badge>}
|
||
|
</ItemTitle>
|
||
|
<ItemSubtitle>{ subtitle }</ItemSubtitle>
|
||
|
</>
|
||
|
) }
|
||
|
{ children }
|
||
|
</BlockItem>
|
||
|
</ItemWrap>
|
||
|
);
|
||
|
|
||
|
export default RowBlock;
|