mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 21:28:09 +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;
|
|
}
|