Blame view

天文台pc/tianwentai-ui/node_modules/react-day-picker/src/components/Months/Months.tsx 464 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  import { ReactNode } from 'react';
  
  import { useDayPicker } from 'contexts/DayPicker';
  
  /** The props for the {@link Months} component. */
  export type MonthsProps = { children: ReactNode };
  
  /**
   * Render the wrapper for the month grids.
   */
  export function Months(props: MonthsProps): JSX.Element {
    const { classNames, styles } = useDayPicker();
  
    return (
      <div className={classNames.months} style={styles.months}>
        {props.children}
      </div>
    );
  }