import { __ } from '@wordpress/i18n';

const SearchConsoleTable = (props) => {
    return (
        <div className="seoaic-sidebar-table sc-table">
            <div className="seoaic-sidebar-table-row seoaic-sidebar-table-header d-grid">
                <div>Keyword</div>
                <div>Imp.</div>
                <div>Clicks</div>
            </div>
            {props.keywords.map((obj, i) => {
                return (
                    <div className="seoaic-sidebar-table-row d-grid">
                        <div>{obj.title}</div>
                        <div>{obj.impressions}</div>
                        <div>{obj.clicks}</div>
                    </div>
                );
            })}
        </div>
    );
};

export default SearchConsoleTable;