
export const getComponentSchema = component => {
    if (component && component.schema) {
        return component.schema;
    }
    return undefined;
};


export const getComponentSchemaName = component => {
    let componentName = '';
    const schema = getComponentSchema(component);
    if (getComponentSchema(component)) {
        componentName = schema().name;
    }
    return componentName;
};
