You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
528 B
26 lines
528 B
import Link from 'next/link';
|
|
|
|
import { FC } from 'react';
|
|
|
|
import styles from './PageBuilder.module.scss';
|
|
|
|
const PageBuilder: FC<{ header: string; subtitle: string; button: string }> = ({
|
|
header,
|
|
subtitle,
|
|
button,
|
|
children,
|
|
}) => (
|
|
<div className={styles.body}>
|
|
<div>
|
|
{children}
|
|
<div className={styles.header}>{header}</div>
|
|
<div className={styles.subtitle}>{subtitle}</div>
|
|
<Link href="/">
|
|
<a className={styles.link + ' button'}>{button}</a>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
export default PageBuilder;
|