mirror of
https://github.com/docmost/docmost.git
synced 2026-05-17 06:44:05 +08:00
d1dc6977ab
* lock/unlock pages * remove using isLocked column - add default page edit state preference * * Move state management to editors (avoids flickers on edit mode switch) * Rename variables * Add strings to translation file * Memoize components in page component * Fix title editor sending update request on editable state change * fixed errors merging main * Fix embed view in read-only mode * remove unused line * sync * fix responsiveness on mobile --------- Co-authored-by: Philipinho <16838612+Philipinho@users.noreply.github.com>
22 lines
717 B
TypeScript
22 lines
717 B
TypeScript
import classes from "./page-header.module.css";
|
|
import PageHeaderMenu from "@/features/page/components/header/page-header-menu.tsx";
|
|
import { Group } from "@mantine/core";
|
|
import Breadcrumb from "@/features/page/components/breadcrumbs/breadcrumb.tsx";
|
|
|
|
interface Props {
|
|
readOnly?: boolean;
|
|
}
|
|
export default function PageHeader({ readOnly }: Props) {
|
|
return (
|
|
<div className={classes.header}>
|
|
<Group justify="space-between" h="100%" px="md" wrap="nowrap" className={classes.group}>
|
|
<Breadcrumb />
|
|
|
|
<Group justify="flex-end" h="100%" px="md" wrap="nowrap" gap="var(--mantine-spacing-xs)">
|
|
<PageHeaderMenu readOnly={readOnly} />
|
|
</Group>
|
|
</Group>
|
|
</div>
|
|
);
|
|
}
|