import { View, StyleSheet } from 'react-native';
import { Text } from './Text';
import {
radius,
spacing,
} from '@/theme';
import { createThemedStyles } from '@/theme/themed';
import type { Track } from '@/types/audio';
/** A single mono pill (e.g. "FLAC", "24-BIT", "48.0 kHz"). */
export function Badge({ label }: { label: string }) {
const styles = useStyles();
return (
{label}
);
}
/**
* Format badge row for a track. Mirrors desktop `TrackList.tsx`:
* `format.toUpperCase()` and `${(sampleRate / 1000).toFixed(1)} kHz`.
*
* `variant="plain"` drops the pill chrome for muted middot-joined text — used in
* dense track lists where the pills read as too first-class next to the title.
*/
export function FormatBadges({
track,
wrap = true,
variant = 'pill',
}: {
track: Pick