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