import styles from './styles.module.scss'
import { Container } from '@/components/Container/Container'
import classNames from 'classnames'

type TestimonyProps = {
  name?: string
  testimony: string
  occupation?: string
}

export const Testimony = ({ name, testimony, occupation }: TestimonyProps) => {
  return (
    <Container>
      <div className={styles.testimony}>
        <div className={styles.container}>
          <p className={styles.testimonyText}>
            {testimony}
          </p>
          {typeof name === 'string' &&
            <p className={styles.name}>
              {name} {occupation && <>- {occupation}</>}
            </p>
          }
        </div>
      </div>
    </Container>
  )
}
