mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 14:59:35 +08:00
7 lines
229 B
TypeScript
7 lines
229 B
TypeScript
|
import { PresetColorTypes } from '../_util/colors';
|
||
|
|
||
|
// eslint-disable-next-line import/prefer-default-export
|
||
|
export function isPresetColor(color?: string): boolean {
|
||
|
return (PresetColorTypes as any[]).indexOf(color) !== -1;
|
||
|
}
|