site/quartz/components/CustomFooter.tsx
2024-10-14 08:21:45 +02:00

24 lines
692 B
TypeScript

import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
import style from "./styles/footer.scss"
import FooterLinksConstructor from "./Footer_links"
interface Options {
links: Record<string, string>
rings: Record<string, string>
}
export default ((opts?: Options) => {
const FooterLinks = FooterLinksConstructor(opts)
const CustomFooter: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {
return (
<footer class={`${displayClass ?? ""}`}>
<FooterLinks displayClass={displayClass} cfg={cfg} />
</footer>
)
}
CustomFooter.css = style
return CustomFooter
}) satisfies QuartzComponentConstructor