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 18:47:22 +02:00
|
|
|
import Btn8831Constructor 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)
|
2024-10-14 18:47:22 +02:00
|
|
|
const Btn8831 = Btn8831Constructor()
|
2024-10-14 08:21:45 +02:00
|
|
|
|
2024-10-14 18:47:22 +02:00
|
|
|
const CustomFooter: QuartzComponent = (props: QuartzComponentProps) => {
|
2024-10-14 08:09:33 +02:00
|
|
|
return (
|
2024-10-14 18:47:22 +02:00
|
|
|
<footer class={`${props.displayClass ?? ""}`}>
|
|
|
|
<FooterLinks {...props} />
|
|
|
|
<Btn8831 {...props} />
|
2024-10-14 08:09:33 +02:00
|
|
|
</footer>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2024-10-14 18:52:05 +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
|