import clsx from 'clsx'; import React from 'react'; import { Insets } from '@/types/misc'; import { useEnv } from '@/context/EnvContext'; import { useThemeStore } from '@/store/themeStore'; import { useReaderStore } from '@/store/readerStore'; interface SectionInfoProps { bookKey: string; section?: string; showDoubleBorder: boolean; isScrolled: boolean; isVertical: boolean; horizontalGap: number; contentInsets: Insets; gridInsets: Insets; } const SectionInfo: React.FC = ({ bookKey, section, showDoubleBorder, isScrolled, isVertical, horizontalGap, contentInsets, gridInsets, }) => { const { appService } = useEnv(); const { hoveredBookKey } = useReaderStore(); const { systemUIVisible, statusBarHeight } = useThemeStore(); const topInset = Math.max( gridInsets.top, appService?.isAndroidApp && systemUIVisible ? statusBarHeight / 2 : 0, ); return ( <>

{section || ''}

); }; export default SectionInfo;