mirror of
https://github.com/docmost/docmost.git
synced 2025-11-15 15:41:15 +10:00
* page import feature * make file interceptor common * replace @tiptap/html * update tiptap version * reduce table margin * update tiptap version * switch to upstream drag handle lib (fixes table dragging) * WIP * Page import module and other fixes * working page imports * extract page title from h1 heading * finalize page imports * cleanup unused imports * add menu arrow
20 lines
479 B
TypeScript
20 lines
479 B
TypeScript
import { UnstyledButton, Group, Text } from "@mantine/core";
|
|
import classes from "./space-name.module.css";
|
|
|
|
interface SpaceNameProps {
|
|
spaceName: string;
|
|
}
|
|
export function SpaceName({ spaceName }: SpaceNameProps) {
|
|
return (
|
|
<UnstyledButton className={classes.spaceName}>
|
|
<Group>
|
|
<div style={{ flex: 1 }}>
|
|
<Text size="md" fw={500} lineClamp={1}>
|
|
{spaceName}
|
|
</Text>
|
|
</div>
|
|
</Group>
|
|
</UnstyledButton>
|
|
);
|
|
}
|