mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-24 03:06:22 +02:00
Add typescript types for patterns
This commit is contained in:
@@ -2,7 +2,12 @@ import React from 'react';
|
||||
|
||||
import highlight from '../helpers/highlight';
|
||||
|
||||
const SampleCode = ({ code, lang }) => {
|
||||
interface SampleCodeProps {
|
||||
code: string;
|
||||
lang: string;
|
||||
}
|
||||
|
||||
const SampleCode: React.FC<SampleCodeProps> = ({ code, lang }) => {
|
||||
return code === ''
|
||||
? <></>
|
||||
: (
|
||||
|
||||
Reference in New Issue
Block a user