mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
25 lines
634 B
TypeScript
25 lines
634 B
TypeScript
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
|
import { ArrowLeftSmallIcon } from '@blocksuite/icons';
|
|
import { Button, type ButtonProps } from '@toeverything/components/button';
|
|
import { type FC } from 'react';
|
|
|
|
export const BackButton: FC<ButtonProps> = props => {
|
|
const t = useAFFiNEI18N();
|
|
return (
|
|
<Button
|
|
type="plain"
|
|
style={{
|
|
marginTop: 12,
|
|
marginLeft: -5,
|
|
paddingLeft: 0,
|
|
paddingRight: 5,
|
|
color: 'var(--affine-text-secondary-color)',
|
|
}}
|
|
icon={<ArrowLeftSmallIcon />}
|
|
{...props}
|
|
>
|
|
{t['com.affine.backButton']()}
|
|
</Button>
|
|
);
|
|
};
|