Files
2026-10-14 04:20:24 +02:00

25 lines
1.1 KiB
React

// ../pub-game-store/native/ui/Chip.jsx
// reconstructed from the esbuild bundle in eboot.bin
import '../assets/Inter-Regular.ttf';
import { jsx, jsxs } from 'react/jsx-runtime';
import { useLocale } from '../i18n/index.js';
import { FocusRing } from './FocusRing.jsx';
import { Icon } from './Icon.jsx';
import { colors } from './colors.js';
import { Text, View } from '@ps5-react/core';
function Chip({ label, onPress, focusKey }) {
const { rtl } = useLocale();
return /* @__PURE__ */ (0, jsxs)(View, { focusKey, onPress, style: [
{ height: 60, flexDirection: "row", alignItems: "center", gap: 9, borderRadius: 14999, backgroundColor: "#f2f2f3" },
rtl ? { paddingRight: 24, paddingLeft: 18 } : { paddingLeft: 24, paddingRight: 18 }
], children: [
/* @__PURE__ */ (0, jsx)(FocusRing, { round: "full" }),
/* @__PURE__ */ (0, jsx)(Text, { style: { fontFamily: "Inter-Regular", fontSize: 21, fontWeight: 600, color: "#000000", lineHeight: 30 }, children: label }),
/* @__PURE__ */ (0, jsx)(Icon, { name: "x", size: 14, color: colors.canvas })
] });
}
export { Chip };