mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
8a0f687f6e
Co-authored-by: fisker <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
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>
|
|
);
|
|
}
|