church-website/src/components/Testimony/Testimony.tsx
2026-03-06 15:10:14 +01:00

28 lines
718 B
TypeScript

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>
)
}