You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
475 B
29 lines
475 B
import React from 'react'
|
|
import styled from 'styled-components/macro'
|
|
|
|
import { useLexicsStore } from 'features/LexicsStore'
|
|
|
|
const Text = styled.span``
|
|
|
|
type Props = {
|
|
className?: string,
|
|
onClick?: () => void,
|
|
t: string | number,
|
|
}
|
|
|
|
export const T9n = ({
|
|
className,
|
|
onClick,
|
|
t,
|
|
}: Props) => {
|
|
const { translate } = useLexicsStore()
|
|
|
|
return (
|
|
<Text
|
|
onClick={onClick}
|
|
className={className}
|
|
>
|
|
{translate(String(t))}
|
|
</Text>
|
|
)
|
|
}
|
|
|