/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import {
__experimentalItemGroup as ItemGroup,
__experimentalVStack as VStack,
__experimentalHStack as HStack,
FlexItem,
} from '@wordpress/components';
/**
* Internal dependencies
*/
import { NavigationButtonAsItem } from './navigation-button';
import { Subtitle } from './subtitle';
import { useStyle } from './hooks';
interface ElementItemProps {
parentMenu: string;
element: string;
label: string;
}
function ElementItem( { parentMenu, element, label }: ElementItemProps ) {
const prefix =
element === 'text' || ! element ? '' : `elements.${ element }.`;
const extraStyles =
element === 'link'
? {
textDecoration: 'underline',
}
: {};
const [ fontFamily ] = useStyle< string >(
prefix + 'typography.fontFamily'
);
const [ fontStyle ] = useStyle< string >( prefix + 'typography.fontStyle' );
const [ fontWeight ] = useStyle< string >(
prefix + 'typography.fontWeight'
);
const [ backgroundColor ] = useStyle< string >(
prefix + 'color.background'
);
const [ fallbackBackgroundColor ] =
useStyle< string >( 'color.background' );
const [ gradientValue ] = useStyle< string >( prefix + 'color.gradient' );
const [ color ] = useStyle< string >( prefix + 'color.text' );
return (
{ __( 'Aa' ) }
{ label }
);
}
function TypographyElements() {
const parentMenu = '';
return (
{ __( 'Elements' ) }
);
}
export default TypographyElements;