Co-authored-by: fisker <172584+fisker@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
19 lines
437 B
React
19 lines
437 B
React
export function Sidebar({ visible }, { slots }) {
|
|
const children = slots.default();
|
|
return (
|
|
<div class={`options-container ${visible ? "open" : ""}`}>
|
|
<div class="options">{children}</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export function SidebarCategory({ title }, { slots }) {
|
|
const children = slots.default();
|
|
return (
|
|
<details class="sub-options" open>
|
|
<summary>{title}</summary>
|
|
{children}
|
|
</details>
|
|
);
|
|
}
|