/
githubmirror
/
Open-Assistant
Обзор
Документация
Войти
/
githubmirror
/
Open-Assistant
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/src/components/Chat/ChatWarning.tsx
12 строк
357 B
AbdBarho
Reduce warning font size on mobile (#3376)
11 июн 2023, 10:39
Не верифицирован
11 июн 2023, 10:39
9070e31
Код
Авторство
О чём код?
import { Box } from "@chakra-ui/react"; import { useTranslation } from "next-i18next"; import { memo } from "react"; export const ChatWarning = memo(function ChatWarning() { const { t } = useTranslation("chat"); return ( <Box fontSize={["xs", "sm"]} textAlign="center" mb="2" className="max-w-5xl mx-auto"> {t("warning")} </Box> ); });