mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-12 15:52:32 +10:00
20 lines
478 B
TypeScript
20 lines
478 B
TypeScript
import { UnstyledButton, Group, Avatar, Text, rem } 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}>
|
|
{spaceName}
|
|
</Text>
|
|
</div>
|
|
</Group>
|
|
</UnstyledButton>
|
|
);
|
|
}
|