Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 1x 1x 66x 1x 66x | import { css } from '@emotion/css';
const cssClassName = css`
align-items: center;
aspect-ratio: 1 / 1;
display: flex;
justify-content: center;
vertical-align: middle;
svg {
width: 100%;
height: 100%;
}
`;
export const getCssFillClassName = (color?: string) =>
color
? css`
fill: ${color};
`
: '';
const Icon = ({ svg }: { svg: React.ReactNode }) => (
<div className={`${cssClassName} topdone-icon`}>{svg}</div>
);
export default Icon;
|