Blame view

天文台pc/tianwentai-ui/node_modules/react-day-picker/src/components/Head/Head.tsx 404 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
  import { HeadRow } from 'components/HeadRow';
  import { useDayPicker } from 'contexts/DayPicker';
  
  /** Render the table head. */
  export function Head(): JSX.Element {
    const { classNames, styles, components } = useDayPicker();
    const HeadRowComponent = components?.HeadRow ?? HeadRow;
    return (
      <thead style={styles.head} className={classNames.head}>
        <HeadRowComponent />
      </thead>
    );
  }