import Link from 'next/link';

type Props = {
	name: string;
	slug: string;
};

export default function TagChip({ name, slug }: Props) {
	return (
		<Link href={`/feed/tag/${encodeURIComponent(slug)}`} className="feed__tag-chip">
			<span className="feed__tag-chip-name">#{name}</span>
		</Link>
	);
}