mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 07:39:10 +08:00
8 lines
162 B
TypeScript
8 lines
162 B
TypeScript
|
import { useId } from 'react';
|
||
|
|
||
|
const useEmptyId = () => '';
|
||
|
|
||
|
const useThemeKey = typeof useId === 'undefined' ? useEmptyId : useId;
|
||
|
|
||
|
export default useThemeKey;
|