mirror of
https://iceshrimp.dev/iceshrimp/akkoma-fe.git
synced 2025-12-17 00:43:02 +01:00
10 lines
277 B
JavaScript
10 lines
277 B
JavaScript
import isFunction from 'lodash/isFunction'
|
|
|
|
const getComponentOptions = (Component) => (isFunction(Component)) ? Component.options : Component
|
|
|
|
const getComponentProps = (Component) => getComponentOptions(Component).props
|
|
|
|
export {
|
|
getComponentOptions,
|
|
getComponentProps
|
|
}
|