site/quartz/components/CustomFooter.tsx

27 lines
848 B
TypeScript
Raw Normal View History

2024-10-14 08:09:33 +02:00
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
2024-10-14 09:33:17 +02:00
import style from "./styles/customfooter.scss"
2024-10-14 09:27:45 +02:00
import btnstyle from "./styles/buttons8831.scss"
2024-10-14 08:21:45 +02:00
import FooterLinksConstructor from "./Footer_links"
2024-10-14 08:49:37 +02:00
import Btn8831 from "./Btn8831"
2024-10-14 08:09:33 +02:00
interface Options {
links: Record<string, string>
rings: Record<string, string>
}
export default ((opts?: Options) => {
2024-10-14 08:21:45 +02:00
const FooterLinks = FooterLinksConstructor(opts)
const CustomFooter: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {
2024-10-14 08:09:33 +02:00
return (
<footer class={`${displayClass ?? ""}`}>
2024-10-14 08:21:45 +02:00
<FooterLinks displayClass={displayClass} cfg={cfg} />
2024-10-14 08:49:37 +02:00
<Btn8831 displayClass={displayClass} cfg={cfg} />
2024-10-14 08:09:33 +02:00
</footer>
)
}
2024-10-14 09:27:45 +02:00
CustomFooter.css = style + btnstyle
2024-10-14 08:21:45 +02:00
return CustomFooter
2024-10-14 08:09:33 +02:00
}) satisfies QuartzComponentConstructor