import React, { useState } from 'react' import { useTranslate } from '../utils'; import Cell from '../cell'; import Icon from '../icon'; import Progress from '.'; import Button from '../button'; import { DemoPage, DemoCard } from '../configprovider/styles/demo.page'; import { View } from 'react-native'; import { DiviceWidth } from '../utils'; interface T { basic: string customStyle: string noShowPercentage: string showPercentage: string showInsidePercentage: string customContent: string customSize: string statusDisplay: string dynamicChange: string reduce: string add: string } const ProgressDemo = () => { const [translated] = useTranslate({ 'zh-CN': { basic: '基础用法', customStyle: '线形进度条-设置颜色高度', noShowPercentage: '百分比不显示', showPercentage: '百分比外显', showInsidePercentage: '百分比内显', customContent: '百分比内显自定义', customSize: '自定义尺寸', statusDisplay: '状态显示', dynamicChange: '动态改变', reduce: '减少', add: '增加', }, 'zh-TW': { basic: '基礎用法', customStyle: '線形進度條-設置顏色高度', noShowPercentage: '百分比不顯示', showPercentage: '百分比外顯', showInsidePercentage: '百分比內顯', customContent: '百分比內顯自定義', customSize: '自定義尺寸', statusDisplay: '狀態顯示', dynamicChange: '動態改變', reduce: '減少', add: '增加', }, 'en-US': { basic: 'Basic Usage', customStyle: 'Custom Style', noShowPercentage: 'Don’t Show Percentage', showPercentage: 'Percentage displayed outside', showInsidePercentage: 'Percentage displayed inside', customContent: 'Custom Content', customSize: 'Custom Size', statusDisplay: 'Status Display', dynamicChange: 'Dynamic Change', reduce: 'reduce', add: 'add', }, }) const [value, setValue] = useState(0) return ( ) } export default ProgressDemo