1
|
import { SubTagInfo } from '../../api';
|
2
|
import { Container, Row } from 'react-bootstrap';
|
3
|
import { Button } from 'antd';
|
4
|
|
5
|
/**
|
6
|
* Creates a single tag item in a tag panel.
|
7
|
* @param props Properties should contain the tag.
|
8
|
* @returns The item that represents the tag.
|
9
|
*/
|
10
|
export function SubTagItem(props: { subTag: SubTagInfo }) {
|
11
|
/**
|
12
|
* Selects the sub tag.
|
13
|
*/
|
14
|
const selectSubTag = () => {};
|
15
|
|
16
|
return (
|
17
|
<Container>
|
18
|
<Row>
|
19
|
<Button type="text" onClick={selectSubTag} className="w-100 text-start">
|
20
|
{props.subTag.name}
|
21
|
</Button>
|
22
|
</Row>
|
23
|
</Container>
|
24
|
);
|
25
|
}
|