import React from 'react'; import styled, {keyframes} from 'styled-components'; const rotate = keyframes` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `; const StyledSVG = styled.svg<{size: string; stroke?: string}>` animation: 2s ${rotate} linear infinite; height: ${({size}) => size}; width: ${({size}) => size}; path { stroke: ${({stroke, theme}) => stroke ?? theme.primary1}; } `; /** * Takes in custom size and stroke for circle color, default to primary color as fill, * need ...rest for layered styles on top */ export default function MiniLoader({size = '16px', stroke, ...rest}: {size?: string; stroke?: string}) { return ( ); }