Files
OrionTV/components/MediaButton.tsx
zimplexing 504f12067b Refactor components to use StyledButton for consistent button styling
- Replaced custom button implementations with StyledButton in various components including DetailScreen, HomeScreen, SearchScreen, and SettingsModal.
- Updated button styles and behaviors to align with the new StyledButton component.
- Removed the obsolete DetailButton component to streamline the codebase.
2025-07-08 17:24:55 +08:00

17 lines
462 B
TypeScript

import React, { ComponentProps } from "react";
import { StyledButton } from "./StyledButton";
import { StyleSheet } from "react-native";
type StyledButtonProps = ComponentProps<typeof StyledButton>;
export const MediaButton = (props: StyledButtonProps) => (
<StyledButton {...props} style={[styles.mediaControlButton, props.style]} variant="ghost" />
);
const styles = StyleSheet.create({
mediaControlButton: {
padding: 12,
minWidth: 80,
},
});