1 | import React from "react";
|
2 |
|
3 | import type { CalendarWeek } from "../classes/index.js";
|
4 |
|
5 | /**
|
6 | * Render the cell with the number of the week.
|
7 | *
|
8 | * @group Components
|
9 | * @see https://daypicker.dev/guides/custom-components
|
10 | */
|
11 | export function WeekNumber(
|
12 | props: {
|
13 | /** The week to render. */
|
14 | week: CalendarWeek;
|
15 | } & JSX.IntrinsicElements["td"]
|
16 | ) {
|
17 | const { week, ...tdProps } = props;
|
18 | return <td {...tdProps} />;
|
19 | }
|
20 |
|
21 | export type WeekNumberProps = Parameters<typeof WeekNumber>[0];
|