make separate component for section footer to show links below section content on mobile

This commit is contained in:
elise
2024-08-11 11:14:54 +02:00
parent bb2c12f9f6
commit d8ae1ff905
9 changed files with 68 additions and 4 deletions

View File

@ -4,6 +4,7 @@ import { SectionHeader } from "../general/SectionHeader";
import { NewsItem } from "./NewsItem";
import styles from "./newsList.module.scss";
import { NewsFragment } from "@/lib/news";
import { SectionFooter } from "../general/SectionFooter";
export const NewsList = ({
news,
@ -36,6 +37,9 @@ export const NewsList = ({
</button>
</div>
)}
{heading && (
<SectionFooter link="/aktuelt" linkText="Se flere artikler" />
)}
</section>
);
};