fix #5660 - updated One to many [1:N] icon across app - created many to one icon [N:1] , and added it in app   --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
17 lines
581 B
TypeScript
17 lines
581 B
TypeScript
import { useTheme } from '@emotion/react';
|
|
|
|
import IconRelationManyToOneRaw from '@ui/display/icon/assets/many-to-one.svg?react';
|
|
import { IconComponentProps } from '@ui/display/icon/types/IconComponent';
|
|
|
|
type IconRelationManyToOneProps = Pick<IconComponentProps, 'size' | 'stroke'>;
|
|
|
|
export const IconRelationManyToOne = (props: IconRelationManyToOneProps) => {
|
|
const theme = useTheme();
|
|
const size = props.size ?? 24;
|
|
const stroke = props.stroke ?? theme.icon.stroke.md;
|
|
|
|
return (
|
|
<IconRelationManyToOneRaw height={size} width={size} strokeWidth={stroke} />
|
|
);
|
|
};
|