import {View} from "react-native";
import {RadioButton} from "react-native-paper";
import DText from "../../DText/DText";
import {FC} from "react";

type Props = {
    value: string;
    label: string;
}

const SortingButton: FC<Props> = ({value, label}) => {
    return (<View style={{display: "flex", flexDirection: "row", alignItems: "center"}}>
            <RadioButton value={value}/>
            <DText>{label}</DText>
        </View>
    )
}

export default SortingButton;