onsitesurvey/src/components/LoadMoreButton.tsx

22 lines
421 B
TypeScript

'use client'
interface LoadMoreButtonProps {
hasMore: boolean
onLoadMore: () => void
}
export default function LoadMoreButton({ hasMore, onLoadMore }: LoadMoreButtonProps) {
return (
<>
{hasMore ? (
<button onClick={onLoadMore} className="btn-frame n-blue icon">
<i className="btn-edit"></i>
</button>
) : (
<></>
)}
</>
)
}