import React, { useState } from 'react';
import AnnotativeCode from './AnnotativeCode';
import { AnnotationConfig } from 'annotative-code/bin/types/types';
import Button from '@mui/material/Button';
import languageFn from 'annotative-code/bin/highlight.js/languages/javascript';
import themeCss from 'annotative-code/bin/highlight.js/css/a11y-dark';
const CodeDemo = () => {
const [variant, setVariant] = useState<'text' | 'contained' | 'outlined'>(
'text',
);
const content = ``;
const annotation = {
variant: {
type: 'string',
knob: 'select',
options: ['text', 'contained', 'outlined'],
value: variant,
},
} as Record;
return (
{
setVariant(detail.valueObj.variant);
}}
/>
);
};
export default CodeDemo;