Files
web/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/index.tsx
Erik Tiekstra 339e7195dc fix(BOOK-436): Added new section component and deprecated the other
Approved-by: Chuma Mcphoy (We Ahead)
2025-10-13 08:31:26 +00:00

40 lines
830 B
TypeScript

import { getJobylonFeed } from "@/lib/trpc/memoizedRequests"
import { Section } from "@/components/Section"
import SectionHeader from "@/components/Section/Header/Deprecated"
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 (
<Section>
<SectionHeader
link={link}
preamble={subtitle}
title={title}
headingAs="h3"
headingLevel="h2"
/>
<JobList allJobs={allJobs} />
<SectionLink link={link} variant="mobile" />
</Section>
)
}