mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +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;
|
|
}
|