import React, { useState } from 'react' import { PixelCalendarGrid } from './PixelCalendarGrid' export function Default() { const [value, setValue] = useState(null) return } export function WithSelectedDate() { const [value, setValue] = useState(new Date()) return } export function WithMinMax() { const today = new Date() const min = new Date(today.getFullYear(), today.getMonth(), 1) const max = new Date(today.getFullYear(), today.getMonth() + 1, 0) const [value, setValue] = useState(null) return ( ) } export function WithDisabledWeekends() { const [value, setValue] = useState(null) return ( d.getDay() === 0 || d.getDay() === 6} /> ) } export function RangePreview() { const from = new Date() const to = new Date(from.getFullYear(), from.getMonth(), from.getDate() + 5) return }