Files
hipmi/src/app_modules/auth/validasi/layout.tsx
Bagasbanuna02 e2e30c2af0 Bursa Investasi
# feat:
- Tampilan portofolio selesai
- Hapus investasi
- Function get data publish
### no issue
2023-11-15 16:14:27 +08:00

32 lines
742 B
TypeScript

"use client";
import { ActionIcon, AppShell, Group, Header } from "@mantine/core";
import { IconChevronLeft } from "@tabler/icons-react";
import { useRouter } from "next/navigation";
import React from "react";
export default function LayoutValidasi({
children,
}: {
children: React.ReactNode;
}) {
const router = useRouter()
return (
<>
<AppShell
header={
<Header height={50} sx={{borderStyle: "none"}} px={"md"}>
<Group h={50} align="center">
<ActionIcon variant="transparent" onClick={() => router.back()} >
<IconChevronLeft />
</ActionIcon>
</Group>
</Header>
}
>
{children}
</AppShell>
</>
);
}