/* eslint-disable react-native/no-inline-styles */ import { StyleProp, View, ViewStyle } from "react-native" import { useAppTheme } from "@/theme/context" import type { ThemedStyle } from "@/theme/types" import { s } from "@/utils/responsive" interface DemoDividerProps { type?: "vertical" | "horizontal" size?: number style?: StyleProp line?: boolean } /** * @param {DemoDividerProps} props - The props for the `DemoDivider` component. * @returns {JSX.Element} The rendered `DemoDivider` component. */ export function DemoDivider(props: DemoDividerProps) { const { type = "horizontal", size = 10, line = false, style: $styleOverride } = props const { themed } = useAppTheme() return ( {line && ( )} ) } const $divider: ViewStyle = { flexGrow: 0, flexShrink: 0, } const $line: ThemedStyle = ({ colors }) => ({ backgroundColor: colors.border, position: "absolute", left: "50%", top: "50%", })