// ** Next Import
import Link from 'next/link'
// ** MUI Imports
import Box from '@mui/material/Box'
import Grid from '@mui/material/Grid'
import Button from '@mui/material/Button'
import Typography from '@mui/material/Typography'
// ** Types
import { HelpCenterArticlesOverviewType } from 'src/@fake-db/types'
import Image from 'next/image'
type Props = { articles: HelpCenterArticlesOverviewType[] }
const HelpCenterLandingArticlesOverview = (props: Props) => {
const { articles } = props
const renderArticles = () => {
if (articles && articles.length) {
return articles.map(article => {
return (
`1px solid ${theme.palette.divider}`
}}
>
{article.title}
{article.subtitle}
)
})
} else {
return null
}
}
return (
{renderArticles()}
)
}
export default HelpCenterLandingArticlesOverview