mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-20 15:31:37 +01:00
16 lines
522 B
TypeScript
16 lines
522 B
TypeScript
import { SettingsTheme as SharedSettingsTheme } from "@yaakapp-internal/ui";
|
|
import { useAtomValue } from "jotai";
|
|
import { activeWorkspaceAtom } from "../../hooks/useActiveWorkspace";
|
|
import { useSettingsView } from "../../hooks/useSettingsView";
|
|
|
|
export function SettingsTheme() {
|
|
const workspace = useAtomValue(activeWorkspaceAtom);
|
|
const bound = useSettingsView();
|
|
|
|
if (workspace == null || bound == null) {
|
|
return null;
|
|
}
|
|
|
|
return <SharedSettingsTheme view={bound.view} callbacks={bound.callbacks} />;
|
|
}
|