65 lines
2.2 KiB
TypeScript
65 lines
2.2 KiB
TypeScript
'use client'
|
|
import colors from '@/con/colors';
|
|
import { Box, Stack, SimpleGrid, Paper, Title, TextInput, Text, Button } from '@mantine/core';
|
|
import { KesehatanEditor } from '../../_com/kesehatanEditor';
|
|
import { useRouter } from 'next/navigation';
|
|
import { IconArrowBack } from '@tabler/icons-react';
|
|
|
|
|
|
function EditPuskesmas() {
|
|
const router = useRouter();
|
|
return (
|
|
<Box>
|
|
<Box mb={10}>
|
|
<Button onClick={() => router.back()} variant='subtle' color={'blue'}>
|
|
<IconArrowBack color={colors['blue-button']} size={25}/>
|
|
</Button>
|
|
</Box>
|
|
<Stack gap={"xs"}>
|
|
<SimpleGrid cols={{ base: 1, md: 2 }}>
|
|
<Box>
|
|
<Paper bg={colors['white-1']} p={"md"}>
|
|
<Stack gap={"xs"}>
|
|
<Title order={4}>Edit Puskesmas</Title>
|
|
<TextInput
|
|
label={<Text fw={"bold"} fz={"sm"}>Nama Puskesmas</Text>}
|
|
placeholder='Masukkan nama puskesmas'
|
|
/>
|
|
<TextInput
|
|
label={<Text fw={"bold"} fz={"sm"}>No Telp Puskesmas</Text>}
|
|
placeholder='Masukkan no telp puskesmas'
|
|
/>
|
|
<Box>
|
|
<Text fw={"bold"} fz={"sm"}>Deskripsi</Text>
|
|
<KesehatanEditor
|
|
showSubmit={false}
|
|
/>
|
|
</Box>
|
|
<Box>
|
|
<Text fw={"bold"} fz={"sm"}>Pelayanan Posyandu</Text>
|
|
<KesehatanEditor
|
|
showSubmit={false}
|
|
/>
|
|
</Box>
|
|
</Stack>
|
|
</Paper>
|
|
</Box>
|
|
<Box>
|
|
<Paper bg={colors['white-1']} p={"md"}>
|
|
<Stack gap={"xs"}>
|
|
<Title order={4}>Preview Data Puskesmas</Title>
|
|
<Text fw={"bold"} fz={"sm"}>Nama Puskesmas</Text>
|
|
<Text fw={"bold"} fz={"sm"}>No Telp Puskesmas</Text>
|
|
<Text fw={"bold"} fz={"sm"}>Deskripsi</Text>
|
|
<Text fw={"bold"} fz={"sm"}>Pelayanan Posyandu</Text>
|
|
</Stack>
|
|
</Paper>
|
|
</Box>
|
|
</SimpleGrid>
|
|
</Stack>
|
|
</Box>
|
|
);
|
|
}
|
|
|
|
export default EditPuskesmas;
|