mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-29 00:59:40 +07:00
26 lines
534 B
TypeScript
26 lines
534 B
TypeScript
import { Button } from "tamagui";
|
|
import React from "react";
|
|
import useThemeStore from "@/stores/theme";
|
|
import Drawer from "expo-router/drawer";
|
|
import HostsList from "./components/hosts-list";
|
|
|
|
export default function HostsPage() {
|
|
const { toggle } = useThemeStore();
|
|
|
|
return (
|
|
<>
|
|
<Drawer.Screen
|
|
options={{
|
|
headerRight: () => (
|
|
<Button onPress={() => toggle()} mr="$2">
|
|
Toggle Theme
|
|
</Button>
|
|
),
|
|
}}
|
|
/>
|
|
|
|
<HostsList />
|
|
</>
|
|
);
|
|
}
|