Files
AFFiNE/packages/frontend/component/src/components/auth-components/back-button.tsx
forehalo 9dcce43360 refactor(core): auth ui (#10101)
close AF-2202 AF-2203
2025-02-12 07:39:09 +00:00

23 lines
528 B
TypeScript

import { useI18n } from '@affine/i18n';
import { ArrowLeftSmallIcon } from '@blocksuite/icons/rc';
import type { FC } from 'react';
import type { ButtonProps } from '../../ui/button';
import { Button } from '../../ui/button';
export const BackButton: FC<ButtonProps> = props => {
const t = useI18n();
return (
<Button
variant="plain"
style={{
padding: '2px 8px 2px 0',
}}
prefix={<ArrowLeftSmallIcon />}
{...props}
>
{t['com.affine.backButton']()}
</Button>
);
};