init: the first public commit for AFFiNE

This commit is contained in:
DarkSky
2022-07-22 15:49:21 +08:00
commit e3e3741393
1451 changed files with 108124 additions and 0 deletions
@@ -0,0 +1,21 @@
import { styled } from '../styled';
interface ClickableProps {
active?: boolean;
}
export const Clickable = styled('div')<ClickableProps>(({ theme, active }) => {
return {
...theme.affine.typography.sm,
backgroundColor: active
? theme.affine.palette.hover
: theme.affine.palette.white,
cursor: 'pointer',
color: theme.affine.palette.menu,
borderRadius: '5px',
'&:hover': {
backgroundColor: theme.affine.palette.hover,
},
};
});
@@ -0,0 +1 @@
export { Clickable } from './Clickable';