mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
13 lines
300 B
TypeScript
13 lines
300 B
TypeScript
import ReactIcon from '@ant-design/icons-react';
|
|
|
|
export function setTwoToneColor(primaryColor: string): void {
|
|
return ReactIcon.setTwoToneColors({
|
|
primaryColor,
|
|
});
|
|
}
|
|
|
|
export function getTwoToneColor(): string {
|
|
const colors = ReactIcon.getTwoToneColors();
|
|
return colors.primaryColor;
|
|
}
|