import type { SVGProps } from "react"; import { Ref, forwardRef } from "react"; import { DefaultTheme, useTheme } from 'styled-components'; interface IconProps extends Omit, 'fill' | 'stroke'> { /** * @default "currentColor" */ fill?: keyof DefaultTheme['colors'] | (string & {}); stroke?: keyof DefaultTheme['colors'] | (string & {}); } const SvgWheelchair = ({ fill: fillProp = "currentColor", stroke: strokeProp, ...props }: IconProps, ref: Ref) => { const { colors } = useTheme(); const fill = fillProp && fillProp in colors ? colors[fillProp as keyof DefaultTheme['colors']] : fillProp; const stroke = strokeProp && strokeProp in colors ? colors[strokeProp as keyof DefaultTheme['colors']] : strokeProp; return ; }; const ForwardRef = forwardRef(SvgWheelchair); export default ForwardRef;