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