feat(react/widgets): port search result

This commit is contained in:
Elian Doran
2025-08-28 23:13:24 +03:00
parent fa66e50193
commit 4ef103063d
5 changed files with 84 additions and 93 deletions

View File

@@ -4,11 +4,12 @@ interface AlertProps {
type: "info" | "danger" | "warning";
title?: string;
children: ComponentChildren;
className?: string;
}
export default function Alert({ title, type, children }: AlertProps) {
export default function Alert({ title, type, children, className }: AlertProps) {
return (
<div className={`alert alert-${type}`}>
<div className={`alert alert-${type} ${className ?? ""}`}>
{title && <h4>{title}</h4>}
{children}