feat(note_actions): group development options

This commit is contained in:
Elian Doran
2025-12-10 16:51:07 +02:00
parent 2060bb8cdd
commit 7c5df21685
4 changed files with 59 additions and 29 deletions

View File

@@ -161,11 +161,16 @@ export function FormDropdownDivider() {
return <div className="dropdown-divider" />;
}
export function FormDropdownSubmenu({ icon, title, children }: { icon: string, title: ComponentChildren, children: ComponentChildren }) {
export function FormDropdownSubmenu({ icon, title, children, dropStart }: {
icon: string,
title: ComponentChildren,
children: ComponentChildren,
dropStart?: boolean
}) {
const [ openOnMobile, setOpenOnMobile ] = useState(false);
return (
<li className={`dropdown-item dropdown-submenu ${openOnMobile ? "submenu-open" : ""}`}>
<li className={clsx("dropdown-item dropdown-submenu", { "submenu-open": openOnMobile, "dropstart": dropStart })}>
<span
className="dropdown-toggle"
onClick={(e) => {
@@ -184,5 +189,5 @@ export function FormDropdownSubmenu({ icon, title, children }: { icon: string, t
{children}
</ul>
</li>
)
);
}