maccounter
25 строк · 516.0 Байт
1import { space } from '@assets/symbols'
2import React from 'react'
3
4// import styles from './Greeting.module.css'
5
6export interface GreetingProps {
7userName: string
8timePeriod: string
9}
10
11const Greeting: React.FC<GreetingProps> = ({ userName, timePeriod }) => (
12<div className="txt--title-small">
13<p>
14Good
15{space}
16{timePeriod}
17,
18{space}
19<span>{userName}</span>
20!
21</p>
22</div>
23)
24
25export default Greeting
26