add titleback

This commit is contained in:
rizky 2024-04-02 21:42:02 -07:00
parent 906f76698a
commit 8681149a30
2 changed files with 27 additions and 1 deletions

24
comps/custom/TitleBack.tsx Executable file
View File

@ -0,0 +1,24 @@
import { icon } from "../icon";
import { FC } from "react";
export const TitleBack: FC<{
label: string;
url: string;
name_page: string;
}> = ({ label, url, name_page }) => {
return (
<div className="c-bg-gray-100 c-px-2 c-w-full c-h-[20px] c-flex c-py-2">
<div
className="c-mr-2 hover:c-cursor-pointer"
onClick={() => {
navigate(`${url}`);
}}
>
{icon.left}
</div>
<div>{label || "-"}</div>
</div>
);
};

View File

@ -46,6 +46,7 @@ import {
BetweenHorizontalStart,
Outdent,
Indent,
ChevronLeft,
} from "lucide-react";
export const icon = {
@ -76,6 +77,7 @@ export const icon = {
workflow: <Workflow />,
layout: <LayoutList />,
right: <ChevronRight />,
left: <ChevronLeft />,
down: <ChevronDown />,
setting: <Settings />,
settingSmall: <Settings className={`c-w-4`} fill="currentColor" />,
@ -120,5 +122,5 @@ export const icon = {
</svg>
),
delete: <Delete />,
update: <Edit />
update: <Edit />,
};