UNPKG

@etsoo/website

Version:

ETSOO CMS Based NextJs Website Framework

15 lines (14 loc) 889 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import React from 'react'; import { SiteUtils } from '../site/SiteUtils'; /** * Common title list tab page * @param props Props * @returns Component */ export function CommonTitleListPage(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-6 col-xxl-4 tab-list-container", children: _jsx("div", { className: "tab-list-title", children: _jsx("a", { href: SiteUtils.formatLink(article), children: article.title }) }) }, article.id))) }) })] })); }