mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-27 10:04:52 +00:00
21 lines
384 B
TypeScript
21 lines
384 B
TypeScript
![]() |
import React from 'react';
|
||
|
import { BookOutlined } from '@ant-design/icons';
|
||
|
import styled from 'styled-components';
|
||
|
|
||
|
type Props = {
|
||
|
name: string;
|
||
|
};
|
||
|
|
||
|
const TermName = styled.span`
|
||
|
margin-left: 5px;
|
||
|
`;
|
||
|
|
||
|
export default function TermLabel({ name }: Props) {
|
||
|
return (
|
||
|
<div>
|
||
|
<BookOutlined />
|
||
|
<TermName>{name}</TermName>
|
||
|
</div>
|
||
|
);
|
||
|
}
|