import { jsx as _jsx } from "@emotion/react/jsx-runtime";
import { Link } from '@chakra-ui/react';
import { Type } from '@sinclair/typebox';
import { createComponent } from '@meta-ui/core';
import Text, { TextPropertySchema } from '../_internal/Text';
const LinkImpl = ({ text, href, isExternal, }) => {
    return (_jsx(Link, Object.assign({ href: href, isExternal: isExternal, color: "blue.500" }, { children: _jsx(Text, { value: text }, void 0) }), void 0));
};
const PropsSchema = Type.Object({
    text: TextPropertySchema,
    href: Type.String(),
    isExternal: Type.Optional(Type.Boolean()),
});
export default Object.assign(Object.assign({}, createComponent({
    version: 'chakra_ui/v1',
    metadata: {
        name: 'link',
        displayName: 'Link',
        description: 'chakra-ui link',
        isDraggable: true,
        isResizable: true,
        exampleProperties: {
            text: {
                raw: 'link',
                format: 'plain',
            },
            href: 'https://www.google.com',
        },
        exampleSize: [2, 1],
    },
    spec: {
        properties: PropsSchema,
        state: {},
        methods: [],
        slots: [],
        styleSlots: [],
        events: [],
    },
})), { impl: LinkImpl });
//# sourceMappingURL=Link.js.map