mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-02 14:49:44 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
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} />;
|
||||
};
|
||||
Reference in New Issue
Block a user