import React from 'react' export interface KeywordsDisplayProps { keywords?: string[] isLoading: boolean } export const KeywordsDisplay: React.FC = ({ keywords, isLoading }) => { if (!isLoading && (!keywords || keywords.length === 0)) { return null } if (isLoading) { return (
Extracted Keywords:
{[1, 2, 3].map((i) => (
))}
) } return (
Extracted Keywords:
{keywords?.map((keyword, index) => ( {keyword} ))}
) }