15 lines
449 B
TypeScript
15 lines
449 B
TypeScript
import * as React from "react"
|
|
import { DialogTrigger } from "@workspace/ui/components/dialog"
|
|
|
|
import { searchDialogHandle } from "./handle"
|
|
|
|
export type SearchTriggerProps = Omit<
|
|
React.ComponentProps<typeof DialogTrigger>,
|
|
"handle"
|
|
>
|
|
|
|
/** Opens the nearest mounted SearchDialog through its shared dialog handle. */
|
|
export function SearchTrigger(props: SearchTriggerProps) {
|
|
return <DialogTrigger {...props} handle={searchDialogHandle} />
|
|
}
|