component_test.ts

 1import { toggle_label_button_style } from "../component/label_button"
 2import { useTheme } from "../common"
 3import { text_button } from "../component/text_button"
 4import { toggleable_icon_button } from "../component/icon_button"
 5import { text } from "./components"
 6
 7export default function contacts_panel(): any {
 8    const theme = useTheme()
 9
10    return {
11        button: text_button({}),
12        toggle: toggle_label_button_style({ active_color: "accent" }),
13        disclosure: {
14            ...text(theme.lowest, "sans", "base"),
15            button: toggleable_icon_button(theme, {}),
16            spacing: 4,
17        }
18    }
19}