'use client';

type Props = {
	count: number;
	onClick: () => void;
};

export default function FeedToast({ count, onClick }: Props) {
	if (count <= 0) {
		return null;
	}

	return (
		<button type="button" className="feed__toast" onClick={onClick}>
			<span className="feed__toast-dot" />
			새 글 {count}개 보기
		</button>
	);
}