UNPKG

494 BJSXView Raw
1import React from 'react';
2import { forbidExtraProps, or, childrenOfType } from 'airbnb-prop-types';
3
4import CalendarDay from './CalendarDay';
5import CustomizableCalendarDay from './CustomizableCalendarDay';
6
7const propTypes = forbidExtraProps({
8 children: or([childrenOfType(CalendarDay), childrenOfType(CustomizableCalendarDay)]).isRequired,
9});
10
11export default function CalendarWeek({ children }) {
12 return (
13 <tr>
14 {children}
15 </tr>
16 );
17}
18
19CalendarWeek.propTypes = propTypes;