mirror of
https://github.com/ershisan99/db-studio.git
synced 2025-12-16 12:33:05 +00:00
7 lines
134 B
TypeScript
7 lines
134 B
TypeScript
import { useId } from 'react'
|
|
|
|
export const useAutoId = (id?: string) => {
|
|
const generatedId = useId()
|
|
return id ?? generatedId
|
|
}
|