/* eslint-disable react/jsx-key */ import { TextStyle, View, ViewStyle } from "react-native" import { Button } from "@/components/Button" import { Icon } from "@/components/Icon" import { Text } from "@/components/Text" import { translate } from "@/i18n/translate" import type { ThemedStyle } from "@/theme/types" import { DemoDivider } from "../DemoDivider" import { Demo } from "./types" import { DemoUseCase } from "../DemoUseCase" const ICON_SIZE = 24 const $customButtonStyle: ThemedStyle = ({ colors }) => ({ backgroundColor: colors.error, height: 100, }) const $customButtonPressedStyle: ThemedStyle = ({ colors }) => ({ backgroundColor: colors.error, }) const $customButtonTextStyle: ThemedStyle = ({ colors, typography }) => ({ color: colors.error, fontFamily: typography.primary.bold, textDecorationLine: "underline", textDecorationColor: colors.error, }) const $customButtonPressedTextStyle: ThemedStyle = ({ colors }) => ({ color: colors.palette.neutral100, }) const $customButtonRightAccessoryStyle: ThemedStyle = ({ colors }) => ({ width: "53%", height: "200%", backgroundColor: colors.error, position: "absolute", top: 0, right: 0, }) const $disabledOpacity: ViewStyle = { opacity: 0.5 } const $disabledButtonTextStyle: ThemedStyle = ({ colors }) => ({ color: colors.palette.neutral100, textDecorationColor: colors.palette.neutral100, }) export const DemoButton: Demo = { name: "Button", description: "demoButton:description", data: ({ themed, theme }) => [ , , , , ], }