chore(react/ribbon): change note type

This commit is contained in:
Elian Doran
2025-08-21 20:56:37 +03:00
parent c0beab8a5d
commit f45da049b9
4 changed files with 51 additions and 117 deletions

View File

@@ -76,14 +76,21 @@ interface FormListItemOpts {
active?: boolean;
badges?: FormListBadge[];
disabled?: boolean;
checked?: boolean;
onClick?: () => void;
}
export function FormListItem({ children, icon, value, title, active, badges, disabled }: FormListItemOpts) {
export function FormListItem({ children, icon, value, title, active, badges, disabled, checked, onClick }: FormListItemOpts) {
if (checked) {
icon = "bx bx-check";
}
return (
<a
class={`dropdown-item ${active ? "active" : ""} ${disabled ? "disabled" : ""}`}
data-value={value} title={title}
tabIndex={0}
onClick={onClick}
>
<Icon icon={icon} />&nbsp;
{children}