import SectionContainer from '~/components/Layouts/SectionContainer' import Link from 'next/link' import React, { type FC, type ReactNode } from 'react' import { cn } from 'ui' interface Props { id: string quote: Quote className?: string authorClassName?: string roleClassName?: string avatarClassName?: string logoClassName?: string } type Quote = { text: string author: string logo?: ReactNode role: string avatar?: ReactNode link?: string } const SingleQuote: FC = ({ id: sectionId, quote, className, authorClassName, roleClassName, avatarClassName, logoClassName, }) => { const MaybeLink = ({ children, href }: { children: React.ReactNode; href?: string }) => { if (href) { return ( {children} ) } return children } return ( {quote.text}
{quote.avatar && (
{quote.avatar}
)}
{quote.author} {quote.role}
{quote.logo && (
{quote.logo}
)}
) } export default SingleQuote