bc518174
王天杨
提交两个项目文件
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { useDayPicker } from 'contexts/DayPicker';
export interface FooterProps {
/** The month where the footer is displayed. */
displayMonth?: Date;
}
/** Render the Footer component (empty as default).*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function Footer(props: FooterProps): JSX.Element {
const {
footer,
styles,
classNames: { tfoot }
} = useDayPicker();
if (!footer) return <></>;
return (
<tfoot className={tfoot} style={styles.tfoot}>
<tr>
<td colSpan={8}>{footer}</td>
</tr>
</tfoot>
);
}
|