activityPlaceholder.tsx 560 B

1234567891011121314151617181920212223242526
  1. import {useTheme} from '@emotion/react';
  2. import styled from '@emotion/styled';
  3. import ActivityItem from 'app/components/activity/item';
  4. import space from 'app/styles/space';
  5. function ActivityPlaceholder() {
  6. const theme = useTheme();
  7. return (
  8. <ActivityItem
  9. bubbleProps={{
  10. backgroundColor: theme.backgroundSecondary,
  11. borderColor: theme.backgroundSecondary,
  12. }}
  13. >
  14. {() => <Placeholder />}
  15. </ActivityItem>
  16. );
  17. }
  18. export default ActivityPlaceholder;
  19. const Placeholder = styled('div')`
  20. padding: ${space(4)};
  21. `;