import { QuartzComponentConstructor, QuartzComponentProps } from "./types" import style from "./styles/search.scss" // @ts-ignore import script from "./scripts/search.inline" import { classNames } from "../util/lang" export interface SearchOptions { enablePreview: boolean } const defaultOptions: SearchOptions = { enablePreview: true, } export default ((userOpts?: Partial) => { function Search({ displayClass }: QuartzComponentProps) { const opts = { ...defaultOptions, ...userOpts } return (

Search

Search Search
) } Search.afterDOMLoaded = script Search.css = style return Search }) satisfies QuartzComponentConstructor