mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-01 06:10:16 +08:00
14 lines
320 B
TypeScript
14 lines
320 B
TypeScript
import {
|
|
Calendar as ReactCalendar,
|
|
type CalendarProps,
|
|
} from 'react-date-range';
|
|
import { useTheme } from '../theme';
|
|
|
|
export { CalendarProps };
|
|
|
|
export const Calendar = (props: CalendarProps) => {
|
|
const theme = useTheme();
|
|
|
|
return <ReactCalendar color={theme.affine.palette.primary} {...props} />;
|
|
};
|