import { makeComponentProps } from '@/composables/component' import { makeTagProps } from '@/composables/tag' import { genericComponent, propsFactory } from '@/utils' import { ExtractPropTypes } from 'vue' import { computed } from 'vue' export const makeUTelegramIconProps = propsFactory( { size: { type: String, default: 'sm', required: false, }, ...makeComponentProps(), ...makeTagProps(), }, 'UTelegramIcon' ) export type UTelegramIconProps = ExtractPropTypes export type UTelegramIconSlots = { // } export const UTelegramIcon = genericComponent()({ name: 'UTelegramIcon', props: makeUTelegramIconProps(), setup(props) { const iconSize = computed(() => { let size = '16' if (props.size === 'sm') { size = '16' } else if (props.size === 'md') { size = '20' } else if (props.size === 'lg') { size = '24' } else if (props.size === 'xl') { size = '28' } else if (props.size === '2xl') { size = '32' } return size }) return () => (
) }, }) export type UTelegramIcon = InstanceType