mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import { Box, Typography } from '@mui/joy';
|
|
|
|
type NameProps = {
|
|
name: string;
|
|
link: string;
|
|
title: string;
|
|
description?: string;
|
|
};
|
|
|
|
export const Name = (props: NameProps) => {
|
|
return (
|
|
<>
|
|
<Typography>
|
|
<span style={{ fontSize: '1em' }}>
|
|
<Box
|
|
component="a"
|
|
href={props.link}
|
|
sx={{
|
|
pointerEvents: 'none',
|
|
color: '#000!important',
|
|
'&:hover': {
|
|
color: 'unset',
|
|
},
|
|
}}
|
|
>
|
|
{props.name}
|
|
</Box>
|
|
</span>
|
|
<span style={{ color: '#57606a' }}>
|
|
{' | '}
|
|
{props.title}
|
|
</span>
|
|
</Typography>
|
|
{props.description ? (
|
|
<Typography>
|
|
<span style={{ color: '#aaa' }}>{props.description}</span>
|
|
</Typography>
|
|
) : null}
|
|
</>
|
|
);
|
|
};
|
|
|
|
export const Padding = () => {
|
|
return <div style={{ paddingTop: '1em' }} />;
|
|
};
|