import { Gear, Lock, MagnifyingGlass, X } from 'phosphor-react'; import { useLibraryContext, useLibraryMutation, useLibraryQuery } from '@sd/client'; import { Button, Tabs } from '@sd/ui'; import KeyList from './List'; import KeyMounter from './Mounter'; import NotSetup from './NotSetup'; import NotUnlocked from './NotUnlocked'; export function KeyManager() { const isUnlocked = useLibraryQuery(['keys.isUnlocked']); const isSetup = useLibraryQuery(['keys.isSetup']); if (!isSetup?.data) return ; if (!isUnlocked?.data) return ; else return ; } const Unlocked = () => { const { library } = useLibraryContext(); const isUnlocked = useLibraryQuery(['keys.isUnlocked']); const unmountAll = useLibraryMutation('keys.unmountAll'); const clearMasterPassword = useLibraryMutation('keys.clearMasterPassword'); return (
{/* */} {/* Mount Keys */}
); }; const Keys = () => { return (
); };