import {Trans} from '@common/i18n/trans'; import React from 'react'; import {ButtonBase} from '@common/ui/buttons/button-base'; import clsx from 'clsx'; import {IllustratedMessage} from '@common/ui/images/illustrated-message'; import fontImage from './font.svg'; import {SvgImage} from '@common/ui/images/svg-image/svg-image'; import {FontSelectorFilters} from '@common/ui/font-selector/font-selector-filters'; import { FontSelectorState, UseFontSelectorProps, useFontSelectorState, } from '@common/ui/font-selector/font-selector-state'; import {FontSelectorPagination} from '@common/ui/font-selector/font-selector-pagination'; import {FontConfig} from '@common/http/value-lists'; import {Skeleton} from '@common/ui/skeleton/skeleton'; import {AnimatePresence, m} from 'framer-motion'; import {opacityAnimation} from '@common/ui/animation/opacity-animation'; interface FontSelectorProps extends UseFontSelectorProps { className?: string; } export function FontSelector(props: FontSelectorProps) { const state = useFontSelectorState(props); return (