Skip to content

Commit 2cfd9c4

Browse files
Drawer Component Without Content
1 parent 5c8ac02 commit 2cfd9c4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

quartz/components/Drawer.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
2+
import style from "./styles/drawer.scss"
3+
// @ts-ignore
4+
5+
interface Options {
6+
links?: Record<string, string>
7+
}
8+
9+
export default ((opts?: Options) => {
10+
const Drawer: QuartzComponent = (props: QuartzComponentProps) => {
11+
const links = opts?.links ?? []
12+
return <div class="drawer">Drawer</div>
13+
}
14+
15+
Drawer.css = style
16+
17+
return Drawer
18+
}) satisfies QuartzComponentConstructor

0 commit comments

Comments
 (0)