church-website/src/components/ChurchCard/ChurchCard.tsx
2024-11-19 10:58:33 +01:00

14 lines
No EOL
477 B
TypeScript

import styles from './styles.module.scss'
import { Church, ChurchIcon } from '@/components/ChurchIcon/ChurchIcon'
type ChurchCardProps = {
church: Church,
width?: number,
backgroundColor: string,
}
export const ChurchCard = ({church, backgroundColor, width = 286 }: ChurchCardProps) => {
return <div className={styles.card} style={{backgroundColor, width, height: width}}>
<ChurchIcon church={church} style={"outline"} stroke={0.5} color={"#000000"} />
</div>
}