import { Attachment } from "revolt-api/types/Autumn"; import styled, { css } from "styled-components"; export interface IconBaseProps { target?: T; attachment?: Attachment; size: number; animate?: boolean; } interface IconModifiers { square?: boolean; } export default styled.svg` flex-shrink: 0; img { width: 100%; height: 100%; object-fit: cover; ${(props) => !props.square && css` border-radius: 50%; `} } `; export const ImageIconBase = styled.img` flex-shrink: 0; object-fit: cover; ${(props) => !props.square && css` border-radius: 50%; `} `;