quartz-minimal/quartz/components/Separator.tsx

23 lines
621 B
TypeScript
Raw Permalink Normal View History

2025-12-02 09:52:11 +07:00
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
import style from "./styles/footer.scss"
import { version } from "../../package.json"
interface Options {
links: Record<string, string>
}
export default ((opts?: Options) => {
const Separator: QuartzComponent = ({ displayClass }: QuartzComponentProps) => {
const year = new Date().getFullYear()
const links = opts?.links ?? []
return (
<footer class={`${displayClass ?? ""}`}>
<hr></hr>
</footer>
)
}
Separator.css = style
return Separator
}) satisfies QuartzComponentConstructor