styles.tsx 326 B

1234567891011121314151617
  1. import {css} from '@emotion/react';
  2. export type ImageStyleProps = {
  3. round?: boolean;
  4. suggested?: boolean;
  5. };
  6. export const imageStyle = (props: ImageStyleProps) => css`
  7. position: absolute;
  8. top: 0px;
  9. left: 0px;
  10. border-radius: ${props.round ? '50%' : '3px'};
  11. ${props.suggested &&
  12. css`
  13. opacity: 50%;
  14. `}
  15. `;