/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import { composeStyles, CrossedMethods } from '@crossed/styled'; import { styles } from './styles'; import ActionSheet, { ActionSheetProps, ActionSheetRef } from '@crossed/sheet'; import { useSheetContext } from './context'; import { composeRefs } from '@crossed/core'; import { forwardRef, memo, RefAttributes } from 'react'; export type ContentProps = Omit< ActionSheetProps, 'containerStyle' | 'indicatorStyle' > & { containerStyle?: CrossedMethods; indicatorStyle?: CrossedMethods; }; export const Content = memo>( forwardRef( ({ containerStyle, indicatorStyle, ...props }, parentRef) => { const { actionSheetRef, ref } = useSheetContext(); return ( ); } ) );