@etsoo/website
Version:
ETSOO CMS Based NextJs Website Framework
15 lines (14 loc) • 968 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import React from 'react';
import { SiteUtils } from '../site/SiteUtils';
/**
* Common logo list tab page
* @param props Props
* @returns Component
*/
export function CommonLogoListPage(props) {
// Destruct
const { tab, articles, noDescription } = props;
// Layout
return (_jsxs(React.Fragment, { children: [!noDescription && tab.description && (_jsx("div", { className: "tab-description-box text-justify", children: tab.description })), _jsx("div", { className: "container tab-list", children: _jsx("div", { className: "row", children: articles.map((article) => (_jsx("div", { className: "col-md-4 col-xxl-3 tab-list-image", children: _jsxs("a", { href: SiteUtils.formatLink(article), title: article.title, children: [_jsx("img", { src: article.logo, className: "img-fluid" }), _jsx("div", { className: "tab-list-title", children: article.title })] }) }, article.id))) }) })] }));
}