Files
2024-02-15 17:01:50 +00:00

20 lines
347 B
TypeScript

import {css} from '@emotion/react';
export type ImageStyleProps = {
round?: boolean;
suggested?: boolean;
};
export const imageStyle = (props: ImageStyleProps) => css`
position: absolute;
top: 0px;
left: 0px;
border-radius: ${props.round ? '50%' : '3px'};
${
props.suggested &&
css`
filter: grayscale(100%);
`
}
`;