Files
web/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/index.tsx
Erik Tiekstra 7fa86a2077 Merged in feat/SW-1555-jobylon-feed-filter (pull request #1494)
Feat/SW-1555 jobylon feed filter

* feat(SW-1555): Added jobylon feed component

* feat(SW-1555): Added filter functionality for Jobylon feed


Approved-by: Matilda Landström
2025-03-07 11:46:42 +00:00

40 lines
852 B
TypeScript

import { getJobylonFeed } from "@/lib/trpc/memoizedRequests"
import SectionContainer from "@/components/Section/Container"
import SectionHeader from "@/components/Section/Header"
import SectionLink from "@/components/Section/Link"
import JobList from "./JobList"
interface JobylonFeedProps {
title?: string
subtitle?: string
link?: { href: string; text: string }
}
export default async function JobylonFeed({
title,
subtitle,
link,
}: JobylonFeedProps) {
const allJobs = await getJobylonFeed()
if (!allJobs) {
return null
}
return (
<SectionContainer>
<SectionHeader
link={link}
preamble={subtitle}
title={title}
headingAs="h3"
headingLevel="h2"
/>
<JobList allJobs={allJobs} />
<SectionLink link={link} variant="mobile" />
</SectionContainer>
)
}