tui: remove unused dialog-theme component
Some checks are pending
format / format (push) Waiting to run
snapshot / publish (push) Waiting to run

This commit is contained in:
Dax Raad 2025-09-23 06:05:12 -04:00
parent 0de2299236
commit 8a1bf80db8

View file

@ -1,44 +0,0 @@
import { useTheme } from "../context/theme"
import { DialogSelect } from "../ui/dialog-select"
import { useDialog } from "../ui/dialog"
export function DialogTheme() {
const { mode, setMode } = useTheme()
const dialog = useDialog()
const options = () => [
{
key: "dark",
value: "dark",
title: "Dark",
description: "Use dark theme",
category: "Theme",
},
{
key: "light",
value: "light",
title: "Light",
description: "Use light theme",
category: "Theme",
},
{
key: "auto",
value: "auto",
title: "Auto",
description: "Automatically switch based on system preference",
category: "Theme",
},
]
return (
<DialogSelect
title="Select Theme"
current={mode()}
options={options()}
onSelect={(option) => {
setMode(option.value as "dark" | "light" | "auto")
dialog.clear()
}}
/>
)
}