add titleback
This commit is contained in:
parent
906f76698a
commit
8681149a30
|
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
@ -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 />,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue