/* eslint-disable react/destructuring-assignment */
import { Tag } from 'antd';
import React from 'react';

import { Data } from '../index';

function Tags(data: Data['tags']): JSX.Element {
	return (
		<>
			{data.map((e) => (
				<Tag key={e}>{e}</Tag>
			))}
		</>
	);
}

export default Tags;
