site/quartz/components/CustomFooter.tsx

28 lines
834 B
TypeScript
Raw Normal View History

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