mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 14:44:47 +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;
|
|
}
|