/
githubmirror
/
Open-Assistant
Обзор
Документация
Войти
/
githubmirror
/
Open-Assistant
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/src/components/Loading/LoadingScreen.tsx
14 строк
339 B
Eng Zer Jun
refactor(website): convert Header and Loading stories to TypeScript (#2050)
13 мар 2023, 00:38
Не верифицирован
13 мар 2023, 00:38
26fec63
Код
Авторство
О чём код?
import { Box, Center, Progress, Text } from "@chakra-ui/react"; export const LoadingScreen = ({ text = "Loading..." } = {}) => { return ( <Box width="full"> <Progress size="sm" isIndeterminate /> {text && ( <Center width="full" p="12"> <Text>{text}</Text> </Center> )} </Box> ); };