mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-28 16:49:39 +07:00
34 lines
850 B
TypeScript
34 lines
850 B
TypeScript
import { Button } from "tamagui";
|
|
import React from "react";
|
|
import Drawer from "expo-router/drawer";
|
|
import HostList from "./components/host-list";
|
|
import HostForm, { hostFormModal } from "./components/form";
|
|
import Icons from "@/components/ui/icons";
|
|
import { initialValues } from "./schema/form";
|
|
import KeyForm from "../keychains/components/form";
|
|
|
|
export default function HostsPage() {
|
|
return (
|
|
<>
|
|
<Drawer.Screen
|
|
options={{
|
|
headerRight: () => (
|
|
<Button
|
|
bg="$colorTransparent"
|
|
icon={<Icons name="plus" size={24} />}
|
|
onPress={() => hostFormModal.onOpen(initialValues)}
|
|
$gtSm={{ mr: "$3" }}
|
|
>
|
|
New
|
|
</Button>
|
|
),
|
|
}}
|
|
/>
|
|
|
|
<HostList />
|
|
<HostForm />
|
|
<KeyForm />
|
|
</>
|
|
);
|
|
}
|