mirror of
https://github.com/SomboChea/ui
synced 2024-05-21 02:41:36 +07:00
23 lines
496 B
TypeScript
23 lines
496 B
TypeScript
import React from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
import Label from '../Label';
|
|
|
|
import { Greetings } from './styles';
|
|
|
|
interface Props {
|
|
username: string;
|
|
}
|
|
|
|
const HeaderGreetings: React.FC<Props> = ({ username }) => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<>
|
|
<Greetings>{t('header.greetings')}</Greetings>
|
|
<Label capitalize={true} data-testid="greetings-label" text={username} weight="bold" />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default HeaderGreetings;
|