RedemptionsDescription.jsx 867 B

123456789101112131415161718192021222324252627
  1. import React from 'react';
  2. import { Button, Typography } from '@douyinfe/semi-ui';
  3. import { Ticket } from 'lucide-react';
  4. const { Text } = Typography;
  5. const RedemptionsDescription = ({ compactMode, setCompactMode, t }) => {
  6. return (
  7. <div className="flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full">
  8. <div className="flex items-center text-orange-500">
  9. <Ticket size={16} className="mr-2" />
  10. <Text>{t('兑换码可以批量生成和分发,适合用于推广活动或批量充值。')}</Text>
  11. </div>
  12. <Button
  13. type="tertiary"
  14. className="w-full md:w-auto"
  15. onClick={() => setCompactMode(!compactMode)}
  16. size="small"
  17. >
  18. {compactMode ? t('自适应列表') : t('紧凑列表')}
  19. </Button>
  20. </div>
  21. );
  22. };
  23. export default RedemptionsDescription;