score:0

remove the interface on the div and put it in your arrow function instead.

like this

const flex = styled.div`
    display: flex;
    flex-direction: ${(props: flexprops) => props.direction};
`;

Related Query

More Query from same tag