{revisionId != null && (
)}
{revisionId != null && (
)}
{revisionId != null && (
)}
{revisionId != null && !isCompactMode && (
) }
{ showPageControlDropdown && (
)}
);
};
export type SubNavButtonsProps = CommonProps & {
pageId: string,
shareLinkId?: string | null,
revisionId?: string | null,
path?: string | null,
expandContentWidth?: boolean,
};
export const SubNavButtons = (props: SubNavButtonsProps): JSX.Element => {
const {
pageId, revisionId, path, shareLinkId, expandContentWidth,
onClickDuplicateMenuItem, onClickRenameMenuItem, onClickDeleteMenuItem, onClickSwitchContentWidth,
} = props;
const { data: pageInfo, error } = useSWRxPageInfo(pageId ?? null, shareLinkId);
if (error != null) {
return <>>;
}
if (!isIPageInfoForOperation(pageInfo)) {
return <>>;
}
return (