* initial implementation of search modal * added hit and search suggestions * added support for multiple indices * updated sample env * added close when click outside dropdown * test for mobile * added mobile design * added shortcut * dark mode fixes * added search to docs * added plugins filter * added React import * moved filters to configurations * handled error on page load * change suggestion text * removed hits limit * handle select all * open link in current tab * change highlight colors * added support for shortcuts + auto focus * change header and footer * redesigned search ui
29 lines
659 B
TypeScript
29 lines
659 B
TypeScript
import clsx from "clsx"
|
|
import Button, { ButtonProps } from "../../Button"
|
|
|
|
type ModalFooterProps = {
|
|
actions?: ButtonProps[]
|
|
children?: React.ReactNode
|
|
className?: string
|
|
}
|
|
|
|
const ModalFooter = ({ actions, children, className }: ModalFooterProps) => {
|
|
return (
|
|
<div
|
|
className={clsx(
|
|
"py-1.5 pl-0 pr-2",
|
|
"border-medusa-border-base dark:border-medusa-border-base-dark border-0 border-t border-solid",
|
|
"flex justify-end gap-0.5",
|
|
className
|
|
)}
|
|
>
|
|
{actions?.map((action, index) => (
|
|
<Button {...action} key={index} />
|
|
))}
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ModalFooter
|