import {useEffect} from 'react' import {SystemBars} from 'react-native-edge-to-edge' import Animated, { Easing, SlideInDown, SlideOutDown, } from 'react-native-reanimated' import {useComposerState} from '#/state/shell/composer' import {ComposePost} from '#/view/com/composer/Composer' import {atoms as a, useTheme} from '#/alf' export function Composer() { const state = useComposerState() const t = useTheme() const open = !!state useEffect(() => { if (open) { const entry = SystemBars.pushStackEntry({ style: { statusBar: t.name !== 'light' ? 'light' : 'dark', }, }) return () => SystemBars.popStackEntry(entry) } }, [open, t.name]) if (!open) { return null } return ( ) }